[Lazarus] read text file in lazarus
Dians
diansopandi95 at gmail.com
Fri Apr 3 19:03:35 CEST 2009
is there any documentation or link, which i be able to read to use all
feature of lazarus/FPC like Lazarus/FPC from scracth ,from instalation (in
linux) until to use of feature of lazarus/FPC.
2009/4/3 Graeme Geldenhuys <graemeg.lists at gmail.com>
> 2009/4/3 Dians <diansopandi95 at gmail.com>:
> > interesting but i'm still newbie.. how do i read text file in lazarus ,
> i
> > have been looking for documentation but i have not still get it yet, i
> have
>
> You could also use the RTL as follows:
>
> var
> sl: TStringList;
> begin
> sl := TStringList.Create;
> sl.LoadFromFile('/tmp/readme.txt');
>
> // now you can access each line of the text file via
> // sl.Strings[i]
> // see help on TStringList and TStrings for more info
>
> sl.Free;
> end;
>
>
> Regards,
> - Graeme -
>
>
> _______________________________________________
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://opensoft.homeip.net/fpgui/
>
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20090404/263f59d1/attachment-0007.html>
More information about the Lazarus
mailing list