Link to home
Start Free TrialLog in
Avatar of ehavemann
ehavemannFlag for United States of America

asked on

How do I create a new sequential (NOT hashed) file in UniBasic?

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.
ASKER CERTIFIED SOLUTION
Avatar of Kevin Cross
Kevin Cross
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Avatar of ehavemann

ASKER

Dhaest's answer worked for me.  I had neglected to check in on a timely basis to see if I got a response.

Eric