SD3.01FATEngine open and newfile hangups
I'd like to try to open a file, and if it does not exist then create it then open it.
The problem appears to be that if the file does not exist then it hangs at the openFile and I never get to newFile. I've tried to add the \abort trap but it does not help.
If the file exists then it opens and I can write ok.
The problem appears to be that if the file does not exist then it hangs at the openFile and I never get to newFile. I've tried to add the \abort trap but it does not help.
If the file exists then it opens and I can write ok.
strng.stringCopy(@opened_file, strng.trimString(sd.openFile(@File_name , "A"))) open := strng.stringCompareCI(@opened_file ,@File_name) IF (open <> 0) (sd.newFile(@File_name) DAT File_name byte "LOGGER.TXT", 0
Comments
evidently the abort trap does not return a string and the string functions get carried away with some other data.
this seems to work
How do I turn off the "UNSOLVED" flag from this post?