If the line lenght has the same size, you can use a simple file of
char to locate initial and ending offsets of the line and directly
edit chars. I think this is the fastest way.

2012/10/8 Krzysztof <dib...@wp.pl>:
> Hi,
>
> I must modify some one line (mostly first line) in big text file (~10
> 000 lines). Doing this by loading and saving file using TStringList
> takes a long time (and amount of RAM). Exists any faster way based on
> TextFile type (like Write, WriteLn)?
>
> Regards
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal



-- 
Timeo hominem unius libri
Cogito ergo sum - Carpe diem

[]s
Guionardo Furlan
http://guionardo.blogspot.com
http://www.guionardofurlan.com.br
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to