[Scilab-users] Read file (.txt)

Samuel Gougeon sgougeon at free.fr
Thu Sep 10 22:42:01 CEST 2020


Hello Daniel,

In addition to Antoine simple and efficient solution, the following 
works as well (and may be a bit faster for big files. To be confirmed):

File  =  "output.txt";
m  =  read(File,-1, size(evstr(mgetl(File,1)),2));
Regards


Le 10/09/2020 à 00:03, Daniel Stringari a écrit :
> Good evening everyone,
>
> I'm integrating scilab with other software, so I need to read an output file
> (.txt), like the one attached (output).
>
> It is worth mentioning that this file does not always have the same
> dimensions (matrix), so I am trying to find something robust that can deal
> with this particularity. I tried to use the 'csvread' function and the
> 'read' function, but I still haven't been successful ... Any suggestions?
>
> output.txt <http://mailinglists.scilab.org/file/t498028/output.txt>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200910/8c60bed0/attachment.htm>


More information about the users mailing list