Re: pc readf [message #8267] |
Fri, 21 February 1997 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
> input line is too long for input buffer.
I just thought of something else you could try. If the file is
not *too* big, you can try changing the input butter size.
This is set with the BUFSIZE keyword to the OPENR command.
Cheers,
David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
2642 Bradbury Court, Fort Collins, CO 80521
Phone: 970-221-0438 Fax: 970-221-4762
E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
-----------------------------------------------------------
|
|
|
Re: pc readf [message #8268 is a reply to message #8267] |
Fri, 21 February 1997 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Duncan E Farrow <farrow@prodigal.murdoch.edu.au> writes:
> I'm trying to read in ascii data generated by SUN fortran
> & IDL 3.6.1 readf command comes up against
>
> input line is too long for input buffer.
>
> complication:...I only get this error when the file
> is brought over on a mac before arriving on the
> pc....does this transfer not include a LF or CR?
>
> is there a end-machine solution or will I have
> to re-transfer all files?
This is due to a difference in the way Macs and
PCs deal with ASCII or text files. Usually the
software you use to make the transfer (I use
MacLink Plus or Fetch) is smart enough to do
the conversion for you. (Sometimes they must
be configured to do this.)
You could probably muck about with the information
now that you have it (read it into a byte array,
look for LF characters, add a CR, reformat, etc.), but this
is probably more headache than it is worth. I
think it might be faster just to go back and make
the transfer correctly.
Cheers!
David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
2642 Bradbury Court, Fort Collins, CO 80521
Phone: 970-221-0438 Fax: 970-221-4762
E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
-----------------------------------------------------------
|
|
|