Home »
Public Forums »
archive »
Re: Readf and line lenght limit
| Re: Readf and line lenght limit [message #923 is a reply to message #917] |
Tue, 16 March 1993 04:40  |
zawodny
Messages: 121 Registered: August 1992
|
Senior Member |
|
|
In article <C3yCw0.LG5@news.cis.umn.edu> patel@euler.ee.umn.edu (Maqbool Patel) writes:
** Edited freely. **
> I get an error message like:
>
> % Input line is too long for input buffer of 2048 characters.
> % READF: Error encountered reading from file. Unit: 119
> File: /home/users/patel/csi_data/fw2dcsi.fid/procpar
> % Execution halted at READPROCPAR <read_procapr.pro( 54)> (READF).
> % Called from $MAIN$
>
> I see in my input file a line which is really long (>2048 chars).
> I am reading an ascii file and I have to read it as such.
I also had this problem just recently. Since it was a one time thing
for me, I decided to brute force it. I read the file in 80 character chunks
(the file was organized so that this was a natural length to use) into a byte
variable via the ASSOC function and then used the really neat function READS
to get the info in to the variables I wanted to use. Maybe something like
this will work for you as well.
Obviously, I too would like to know the "right way" to do this.
--
Joseph M. Zawodny (KO4LW) NASA Langley Research Center
Internet: zawodny@arbd0.larc.nasa.gov MS-475, Hampton VA, 23681-0001
Packet: ko4lw@wb0tax.va.usa
|
|
|
|
Current Time: Tue Dec 02 11:54:37 PST 2025
Total time taken to generate the page: 1.36656 seconds