hmonnier
New Member
Enjoying Life
Posts: 27
|
Post by hmonnier on Nov 22, 2018 8:48:57 GMT -5
I just do not see why the close statements are not working.... Just trying to purge some junk from an input file, and generating one without it. The close statements are not functiong. Always get this error, the file is written as expected. Thanks...... ==================== ' first parse the input file OPEN "input.txt" FOR INPUT AS #infile OPEN "scratchfile.txt" FOR OUTPUT AS #scratch Do until EOF = -1 INPUT #infile, a$ IF a$ <> "Not Configured" THEN PRINT #scratch, a$ end if PRINT "parseing" LOOP close #infile close #scratch stop
|
|
|
Post by mknarr on Nov 22, 2018 9:37:30 GMT -5
Change this line Do until EOF = -1 to this Do until EOF(#infile) = -1
|
|