[fpc-pascal] Replacing line in big text file
Guionardo Furlan
guionardo at gmail.com
Mon Oct 8 17:00:10 CEST 2012
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 <dibo20 at 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 at 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
More information about the fpc-pascal
mailing list