| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | File Output .. |
Adam, at 18:11 on Mar 17 1996, you wrote to All ...
AW> I'm writing a configuration program in TP7 which involves
AW> reading user input using a normal readln procedure to read
AW> their input as a variable and write it to a normal text
AW> file. The problem is with the code I have occasionally had a
AW> RUNTIME ERROR 105 which refers to a program not opening and
AW> resetting a file for output before writing to it. I *THINK*
AW> I may have ironed out this bug but if anyone could help by
AW> checking it out to make sure there are no potential
AW> problems.. or if you have a better way of doing it let
AW> me know ... here is a snippet... :
AW> [snip]
AW> Write('What is the name of your BBS? ');
AW> Readln(BBSName);
AW> Assign(ConfigN,'RDAWN.CFG');
AW> Reset(ConfigN);
Reset() requires the file to already exist. If you are writing to it only,
do NOT use the Reset() procedure.
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/544 727 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™.