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

Home » Public Forums » archive » Re: checking if file is dos textfile or unix textfile ?
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: checking if file is dos textfile or unix textfile ? [message #38625 is a reply to message #38619] Fri, 19 March 2004 08:19 Go to previous messageGo to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> following from a question some months ago, this question arised:
> how can I check if a textfile is dos or unix formatted ? Which way do I
> have to open it in IDL under windows (older IDL version 5.2.1) ? How do
> I have to read from the file to check the format ?

Is there some specific file-reading issue you're having? As far as I
know, there is no difference between reading DOS-formatted and
UNIX-formatted files no matter what OS you're using. As a test, I just
read in a DOS-formatted text file on my Linux box without any problems.

There are two UNIX utility programs, dos2unix and unix2dos which convert
files back and forth between the formats. If you want to make sure that
all of your files are of the same format, just run all of them through
the appropriate converter.

-Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Color table editor
Next Topic: STRETCH: A bug?

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

Current Time: Fri Oct 10 14:07:19 PDT 2025

Total time taken to generate the page: 0.40077 seconds