How can this happen?

BlitzPlus Forums/BlitzPlus Beginners Area/How can this happen?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hey,

It is late and I took a glance at your code
in line
filein = ReadFile("Dumbdata.dat")
You use the variable "filein"
in line.
CloseFile( fileout )< It reads & writes correctly but when it hits this command it comes up[File does not exist] How can it say that after it just got thru reading the darn file?
you are trying to close the variable file called "fileout" which isn't open at the time. you need to use closefile (filein)

:) Cheers