500mo Ascii file

Tingsten remi.mercier at imelavi.fr
Sat Jun 16 17:05:56 CEST 2012


Hello all,

Following the "success" of reading a big file (around 200mo) I tried with
bigger files ;-)
Although I waited more than 5 minutes I was not able to load a 500mo file.

So I wanted to only load 1 line every 100 but I did not find a good
technique.
I was thinking doing something like this (I noticed that a line as a
"length" of 41 or 42) :

f=mopen('my500mofile.txt','r');
data=[];eof=0;
While eof==0, data=[data;mgetl(f,1)];mseek(4100,'cur'); eof=meof(f);,end;


mseek(4100,'cur'); should skip 100 line but the problem is that sometimes
4100 does not exactly correspond to exactly 100 lines and it messed up the
result.....

Any idee to avoid this?

Thx you a lot and have a good week-end,
Rémi

--
View this message in context: http://mailinglists.scilab.org/500mo-Ascii-file-tp4024324p4024379.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list