January 13, 2020 at 6:44 pm
#24109
I believe you have to do something like this to write the file (create, open, write, close).
Do lFileOps.$createfile(lDir_1)
Do lFileOps.$openfile(lDir_1,kFalse)
Do FileOps.$writeentirefile(lDir_1,xtextbin) Returns lError
Do lFileOps.$closefile()
For binary files I believe you can do writing in one step using the WriteBinFile command
https://www.omnis.net/developers/resources/onlinedocs/index.jsp
Best of luck!