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 #38626 is a reply to message #38625] Fri, 19 March 2004 07:56 Go to previous messageGo to previous message
Norbert Hahn is currently offline  Norbert Hahn
Messages: 46
Registered: May 2003
Member
Reimar Bauer <R.Bauer@fz-juelich.de> wrote:

> You could read the file in binary and test if 10b is followed by 13b.
> if this is true then it is a dos file.

If I'm not mistaken the sequence is CR followed by LF.

Norbert
[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 06:13:40 PDT 2025

Total time taken to generate the page: 1.11880 seconds