Subj : HW 100.2
To   : Finnigann
From : PistolGrip
Date : Tue Oct 23 2001 07:10 pm

RE: HW 100.2
BY: Finnigann to All on Tue Oct 23 2001 10:20 pm

> !include FILE_IO.INC
>
> FOPEN file O_RDONLY "input.dat"
>
>  if_false
>      print "\r\n\r\nnError Loading Configuration File - Input.Dat"
>      return
>  end_if

### Everything is fine until the next line.  There, you try to open a second
### file with the same <filehandle> "file" as the input file.  You should try
### to use unique filehandles, especially if you need to open mulitple files.

> FOPEN file O_CREAT|O_TRUNC "output.dat"
>
> if_false
>    print "\r\n\r\nnError Loading Configuration File - Output.Dat"

### There is also an error on the next line.  You are trying to close a
### filename, and not the <filehandle> (ie. file) as fclose function requires.

>         fclose Input.dat"
>      return
>    print "\r\n\r\nnDue to file error(s) All files closed at this time."
>                   end_if


Not Bad, "B" :)

PG

---
� Synchronet � WasteLand BBS � telnet://wasteland-bbs.com