PxPlus User Forum

Main Board => Discussions => Language => Topic started by: James Zukowski on April 15, 2021, 12:00:27 PM

Title: CREATE FILE from *memory*
Post by: James Zukowski on April 15, 2021, 12:00:27 PM
I'm creating a temporary text file so it can be completely done before dropping it into the final destination directory for export. This time, I'm printing the lines to a *memory* file. However, when I try:

create file OFile$ from (OFile)

to create the disk file from the memory file, it throws Error #13. Is this appropriate? Do I have to create a REAL file to be copied?

Thanks in advance!
Title: Re: CREATE FILE from *memory*
Post by: Mike King on April 15, 2021, 02:44:11 PM
Yes the input has to be a real file and not a memory file as the create will create the same type of file as the input which is not appropriate if the input is a memory file.