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: References: NNTP-Posting-Host: 61.5.81.187 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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 wrote in message news:... > 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