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);
Assuming it hasn't changed since D1:
var f : textfile;
line : string;
assignfile( f, 'text.dat');
reset( f);
readln( f, line);
closefile( f);
---
* KR * File not found. Should I fake it? Y/N
--- WILDMAIL!/WC v4.12
---------------
* Origin: FIDO: The Ranch & Cattle Metro BBS * (602) 943-1497 (1:114/270.0)
|