| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | File reversing.. |
Paul, at 07:41 on Nov 28 1996, you wrote to All ... PF> G'day i have a problem.. I can not reverse a text file!? the PF> only way that i could think about doing it is to read the PF> last line, the append if to the new file?.. But how would you PF> get the last list? PF> while not eof(normalfile) do PF> begin PF> while not eof(normalfile) do PF> begin PF> read(normalfile,string); PF> end PF> writeln(newfile,string); PF> end You cannot write to a text file open for input without closing it first. David @EOT: --- Msgedsq/2 3.10* Origin: JabberWOCky CBCS +61 7 3868 1597 (3:640/305) SEEN-BY: 633/267 270 @PATH: 640/305 820 711/409 808 50/99 635/728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
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™.