I'm running into a bug that I ran into before on Blitz.
It will not open a file for write if I do so based on user input using this code:
while(1)
tempchar=GetChar()
If tempchar>0 inputtext=inputtext+Chr(tempchar)
savedialog.typedtext=inputtext
If KeyDown(KEY_ENTER)
FlushKeys()
DOES NOT WORK: Local out:TStream=WriteStream(savedialog.typedtext) (this is just a string!)
WORKS: Local out:TStream=WriteStream("bluedemon")
CloseStream (out)
EndIf
wend
Is there something going on with newlines or something that I'm not aware of? Is using KEY_ENTER to exit the loop stripping a newline off of the end of the file that should be there?
It doesn't error or anything, it just doesn't create any file. The other file creation method using CreateFile does not work either which leads me to believe that it must be some sort of bug in my user input code that I am not aware of...
Since I know some people like screenshots, here is the titular blue demon:

This is for a voxel dungeonshooter/roguelike I am working on called Dungeonslayers. The whole gui toolkit is written by me-- it doesn't look like much but it has control arrays, sliders, and radio buttons.