Home »
Public Forums »
archive »
Re: Help reading MAC ASCII in windows
Re: Help reading MAC ASCII in windows [message #18493] |
Wed, 05 January 2000 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Peter Brooker (ra5589@email.sps.mot.com) writes:
> I am using IDL on an NT windows machine. I want to read ASCII files that
> were created on a MAC. The normal End of Line (EOL) for windows in a
> CR/LF. The MAC file only has a single CR.
>
> When IDL tries to read this type of file it gets only the first record.
> It ignors the records after the CR. Most likely it is expecting a LF.
>
> Can "readf" be set to recognize the single CR as the EOL and
> consequently read the remaining records correctly?
>
> Is there a way to tell readf that the EOL is a single CR?
This is not the sort of thing that is usually handled by
IDL. It is normally handled by the proper configuration
of your FTP or file transfer application. All the ones
I know about pretty much do this translation automatically.
You aren't just putting a Mac disk in your PC and hoping
it will work, are you? :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Current Time: Fri Oct 10 22:35:45 PDT 2025
Total time taken to generate the page: 0.24262 seconds