Re: [Scilab-users] Scan file backward from the end?

2013-03-21 Thread Antoine Monmayrant
On Wednesday, March 20, 2013 23.43 CET, Serge Steer serge.st...@inria.fr wrote: If you know the approximate size of the footer in number of bytes (assume N greater than it) you can try to set the pointer N bytes before the end of file using the u=mopen(myfile); mseek(-N,u,'end')

[Scilab-users] Scan file backward from the end?

2013-03-20 Thread Antoine Monmayrant
Hi all, Do any of you know an efficient way to scan a text file backward from the end in scilab? I want to load into scilab text data (a footer) that is situated in a file after a big binary blob of variable length (a huge tiff image). For the moment I scan line by line from the top and test

Re: [Scilab-users] Scan file backward from the end?

2013-03-20 Thread Serge Steer
amonm...@laas.fr À: users@lists.scilab.org Envoyé: Mercredi 20 Mars 2013 22:59:55 Objet: [Scilab-users] Scan file backward from the end? Hi all, Do any of you know an efficient way to scan a text file backward from the end in scilab? I want to load into scilab text data (a footer