[Scilab-users] Help with text files

Eduardo Torrecillas eduardo.torrecillas at gmail.com
Tue Nov 26 20:43:17 CET 2013


Hi Paul,

Using phrase=mgetl(fd) turns into the same result:

 phrase  =

 ÿþ


Regards,


On Tue, Nov 26, 2013 at 5:22 PM, Paul Carrico <paul.carrico at free.fr> wrote:

> Try basicaly …
>
> phrase=mgetl(fd)
>
> then you’ve an array of characters …
>
>
>
> Paul
>
>
>
>
>
>
>
> *De :* users [mailto:users-bounces at lists.scilab.org] *De la part de*Eduardo Torrecillas
> *Envoyé :* mardi 26 novembre 2013 19:14
> *À :* International users mailing list for Scilab.
> *Objet :* [Scilab-users] Help with text files
>
>
>
> Hello all,
>
> I currently have some text files and I would like to extract information
> from them using Scilab.
> I have done this before, using mopen and mgetl, for example.
>
> Don't know why, but strangely in this case it is not working. I am using
> Scilab 5.4.1 on Ubuntu (but Scilab 5.4.0 under Windows produced the same
> result).
>
> Please check the attached text file.
>
> Simple code such as:
>
> fd=mopen('scilab_example.txt','r')
>
> phrase=mgetl(fd,1)
>
> Produces:
>
> phrase=ÿp
>
> If i still try to use mgetl, next lines are always returned as empty.
>
> Does anybody have any clue on whats happening?
>
> Best regards,
>
>
> --
> Eduardo Torrecillas
> AER-09
>
>
> ------------------------------
>    <http://www.avast.com/>
>
> Ce courrier électronique ne contient aucun virus ou logiciel malveillant
> parce que la protection Antivirus avast! <http://www.avast.com/> est
> active.
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
>


-- 
Eduardo Torrecillas
AER-09
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20131126/62f519d8/attachment.htm>


More information about the users mailing list