Having users type out filenames including folders is asking for trouble! You really want a file requester. I'm using this command...
...which calls up a Windows file requester, and you can deck it out with which file types you want. Note that this is only the names of the files, not the actual format you need to save the file as!
I think it uses WinBlitz3D, but a quick search hasn't found me WinBlitz3D for you to grab. TBH I drop in and out of coding at such intervals that I get lost where I'm up too in developments. All I know is my code is working - I don't really know what libs I'm using!!!
I think a lot of other file-requester code options you have are part of full GUI libraries. Which to be honest you probably want to look into. I gave up on them and wrote my own because I find it harder to learn a million gadgets and function calls than write my own simplified interface! However a full-blown interface as you'd want with a graphics application is no small undertaking, so learning a GUI library would serve you well.
As an alternative option, if you're only keeping it simple to learn, you could just save the file in a standard folder with a standard name and copy/move it from there in Windows.
13 year olds writing programs is cool! the downside is things are way more complicated than back in the 8 bit era when more kids were programming and no-one had disks, let alone hard0drives with epic file structures! Creating games is far easier now. Creating applications that need graphical interfaces and mouse control and file access is a headache :(
save_file$ = WB3D_SaveFileRequest("Save File","", ".png image" +Chr(0)+ "*.png" +Chr(0), this_file$)
...which calls up a Windows file requester, and you can deck it out with which file types you want. Note that this is only the names of the files, not the actual format you need to save the file as!
I think it uses WinBlitz3D, but a quick search hasn't found me WinBlitz3D for you to grab. TBH I drop in and out of coding at such intervals that I get lost where I'm up too in developments. All I know is my code is working - I don't really know what libs I'm using!!!
I think a lot of other file-requester code options you have are part of full GUI libraries. Which to be honest you probably want to look into. I gave up on them and wrote my own because I find it harder to learn a million gadgets and function calls than write my own simplified interface! However a full-blown interface as you'd want with a graphics application is no small undertaking, so learning a GUI library would serve you well.
As an alternative option, if you're only keeping it simple to learn, you could just save the file in a standard folder with a standard name and copy/move it from there in Windows.
13 year olds writing programs is cool! the downside is things are way more complicated than back in the 8 bit era when more kids were programming and no-one had disks, let alone hard0drives with epic file structures! Creating games is far easier now. Creating applications that need graphical interfaces and mouse control and file access is a headache :(