10-02-2024, 06:10 AM
Thanks for responding. This error is now resolved.
Unfortunately, I don't know what fixed the problem...
The SB installation is not on C drive, so that's not an issue.
I always save my code to a relevant folder before compiling, so that's not an issue.
Every SB program I have with file.writeline was exhibiting the same issue. Some of these are 2 or 3 years old... made me assume it was a Windows issue.
1. Tried clearing Windows\Temp... - reboot - not fixed.
2. Tried uninstalling and reinstalling SB... - reboot - not fixed.
3. Tried to find any temp files that SB might have left around _anywhere_... and deleting them... not fixed.
Gave up and took the grandkids for a bike ride. Came back and tried my test program, and lo and behold its fixed !!
I have no idea what broke, or what fixed it.
Here's the Test code I was using...
Unfortunately, I don't know what fixed the problem...
The SB installation is not on C drive, so that's not an issue.
I always save my code to a relevant folder before compiling, so that's not an issue.
Every SB program I have with file.writeline was exhibiting the same issue. Some of these are 2 or 3 years old... made me assume it was a Windows issue.
1. Tried clearing Windows\Temp... - reboot - not fixed.
2. Tried uninstalling and reinstalling SB... - reboot - not fixed.
3. Tried to find any temp files that SB might have left around _anywhere_... and deleting them... not fixed.
Gave up and took the grandkids for a bike ride. Came back and tried my test program, and lo and behold its fixed !!
I have no idea what broke, or what fixed it.
Here's the Test code I was using...
Code:
GraphicsWindow.Show()
GraphicsWindow.Title = "About to write line..."
File.WriteLine("E:\SmallBasic\Controller\TestWrite.txt", 1, "Line Written")
GraphicsWindow.Title = "Line written"
While ("True")
EndWhile