'this code shows a feature/bug of Qbasic inherited by QB64
' to duplicate experience please run this code into QB64 or Qbasic in DOSBOX
' part 1 creates a file with a strange name so that it is difficult
' to have it as real file in your pc
filename$ = "1a2b3c4d.$$$"
Killing = 0
'testing if file exists
Print "File exists and opened "; filename$
ThisFile:
' the file doesn't exist so it creates that and puts some data into file
Txt$ = "hello world"
Print "file created "; filename$
' it says if the file must be delete at the end of code
Killing = -1
' return on the linecode of error