Re: reading a Mac text file on Windows [message #20299] |
Fri, 02 June 2000 00:00  |
Paul Woodford
Messages: 43 Registered: June 2000
|
Member |
|
|
In article <8h67q1$85s$1@nnrp1.deja.com>, Ronn Kling <ronn@rlkling.com>
wrote:
> I have an ascii text file that was created on a Mac that now resides on
> Windows. I need to be able to read this into IDL on Windows, but so far
> I have had no luck. (On a Mac the end of line is a linefeed, on Windows
> it is a carriage return/line feed. On Windows, IDL thinks this is a one
> line file). I would like some IDL technique to read this, but if
> someone has some C code that can do it I would be interested.
In addition to David Fanning's suggestions:
* Use BBEdit as your editor on the Mac. BBEdit and its freeware
version, BBEdit Lite, can transparently handle Mac, DOS, and unix end of
line conventions. I work with all three platforms, and have found that
using the unix convention is best. IDL on all three platforms seems to
understand unix convention.
* A number of Mac utilities exist that translate between the different
conventions. I use DropStrip if I want to convert a whole folder of
files, for instance.
--
Paul Woodford, Ph.D.
Essex Corporation
For faster email response, replace "us.net" with "essexcorp.com"
|
|
|