Main Board > Language
Large records in file
michaelgreer:
I am trying to create a file with record size >32K. I am using this:
keyed "myfile",[1:1:16:"+"],0,-50000,opt="X"
This throws an error 41. What am I mssing?
Mike King:
Set the record size to -30000 and use the OPT="X" (as you have specified).
The -30000 indicates that internally the system will split the records into 30000 byte chunks each linked together due to the OPT="X".
michaelgreer:
Thanks Mike. Not sure I would ever have figure *that* out. :P Now, I just did keyed "myfile",[1:1:16:"+"],0,-30000,opt="X". I dimmed a$(35000). When I write to a channel with myfile opened - write(lfo)*,a$ - I get an error 1.
Mike King:
What version PxPlus are you using? I just tried this here and it worked on all supported release (PxPlus 2018 v15 -> PxPlus 2021 v18).
PxPlus-2018 Web (Ver:15.10/MS-WINDOWS) Serno:1510-001-xxxxxxx
(c) Copyright 2005-2018 PVX Plus Technologies Ltd. (All rights reserved)
Website: http://www.pvxplus.com
->keyed "myfile",[1:1:16:"+"],0,-30000,opt="X"
->dim a$(35000)
->open (1) "myfile"
->write (1) *,a$
->
michaelgreer:
Well now, that may be the issue. I am on 10.20. Not supported there?
Navigation
[0] Message Index
[#] Next page
Go to full version