| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | READ A TEXT FILE |
Jud McCranie wrote in a message to All:
JM> How do you read a text file in Delphi 3? That is, what is
JM> the 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);
Your VAR info is ok.
assignfile(f,'text.dat');
reset(f);
readln(f,line);
closefile(f);
Thanks,
Ryan
---
--- Squish/386 v1.11
---------------
a * Origin: Midnight Express, Fairlawn Ohio (1:157/110)* Origin: Midnight Express Fairlawn Ohio (1:157/110) |
|
| 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™.