comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: reading a Mac text file on Windows
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: reading a Mac text file on Windows [message #20299] Fri, 02 June 2000 00:00 Go to previous message
Paul Woodford is currently offline  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"
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Curvefit on PV-Wave
Next Topic: Color printing to a Lexmark printer

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:52:25 PDT 2025

Total time taken to generate the page: 0.00506 seconds