We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LDController
#11
My guess is that you need to save the SB code to a file first.

If you don't save your code then the default folder is %temp%.

A reboot should clear any locked file issue, e.g. if the program is already running when you start it.
Reply
#12
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...

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
Reply
#13
I could not understand what was making error but one question WHY added While at end the application of text window and graphics window does not end till we close the window.
ZS
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)