How do I create a new sequential (NOT hashed) file in UniBasic?
Posted on 2011-05-10
What I am trying to do should be simple and straightforward, but I can't figure it out.
My UniBasic application simply needs to create a new temporary text file and add data to it.
The documentation says I can use "WRITESEQ" with the "APPEND" option to create a new file, yet also says I must first use "OPENSEQ" to open the file! But since there is no file to open, then OPENSEQ crashes with a fatal error and the file variable needed by WRITESEQ is never initialized. Also, there is no way in WRITESEQ to specify the name of the new file it would allegedly create; it wants that "file variable" instead.
I am aware of the UniData CREATE.FILE command, but that creates a hashed file and also an entry in the VOC file, neither of which is desirable.