PxPlus User Forum

Twitter Twitter Twitter

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

James Zukowski

  • Diamond Member
  • *****
  • Posts: 297
    • 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
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
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.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com