delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | xeon AT dacreations DOT cjb DOT net (xeon) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: how to determine if a file is text/binary |
Date: | 1 May 2002 00:09:50 -0700 |
Organization: | http://groups.google.com/ |
Lines: | 7 |
Message-ID: | <c21a43ff.0204302309.7c13ed96@posting.google.com> |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1020430081409 DOT 3296J-100000 AT is> |
NNTP-Posting-Host: | 61.5.81.187 |
X-Trace: | posting.google.com 1020236990 544 127.0.0.1 (1 May 2002 07:09:50 GMT) |
X-Complaints-To: | groups-abuse AT google DOT com |
NNTP-Posting-Date: | 1 May 2002 07:09:50 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote in message news:<Pine DOT SUN DOT 3 DOT 91 DOT 1020430081409 DOT 3296J-100000 AT is>... > The usual technique is to read a portion of a file, say, 16KB, and see if > it contains null characters (`\0'). Is there any other way? Test reading Kb's of data may not be an option in this particular project. TIA
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |