ddt.demos.su!f400.n5020!f1.n4625!f30.n4625!server.oaio.savebank!f30.n4625.z2!p
16.f30.n4625.z2!not-for-mail
Hello, Jud!
25-Jul-97, Jud McCranie wrote to All
About: READ A TEXT FILE
JM> How do you read a text file in Delphi 3? That is, what is the
JM> equivalent of
JM> var f : text;
JM> line : string;
JM> ...
JM> assign( f, 'text.dat');
JM> reset( f);
JM> readln( f, line);
JM> close( f);
JM> Jud McCranie jud.mccranie@camcat.com
JM> ... The ease of Pascal with the power of Pascal.
var
F: TextFile;
line: String;
...
AssignFile (F, 'text.dat');
Reset (F);
ReadLn (F);
CloseFile (F);
Best wishes, Alex Shepetko
--- Terminate 4.00/Pro
---------------
* Origin: P.O.S.T.E. "Elena" Vinnytsia elenavin@sovamua.com (2:4625/30.16)
|