TIP: Click on subject to list as thread! ANSI
echo: delphi
to: JUD MCCRANIE
from: KELLY SMALL
date: 1997-07-26 20:43:00
subject: 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);
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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.