PxPlus User Forum

Twitter Twitter Twitter

Author Topic: CREATE FILE from *memory*  (Read 226 times)

James Zukowski

  • Diamond Member
  • *****
  • Posts: 187
    • View Profile
CREATE FILE from *memory*
« 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!
James Zukowski
Programmer / ERP Analyst
Beauty Enterprises, Inc.
150 Meadow St.
Hartford, CT 06114
860.296.9303  Ext 231

Mike King

  • Administrator
  • Diamond Member
  • *****
  • Posts: 3496
  • Mike King
    • View Profile
    • PVX Plus Technologies
Re: CREATE FILE from *memory*
« Reply #1 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.