Error accessing a file after WriteFile

Blitz3D Forums/Blitz3D Beginners Area/Error accessing a file after WriteFile

Hmmm, both closefiles should be within the "if file opened"'s, but that shouldn't cause mentioned bug. Try replacing openfile with readfile. I'm still not shure what the bug might be.

Edit: I tried to replicate your bug, the code you have given seemed to work fine.