🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16623

Re: Ascii or binary file

#16623
From: Remy Lebeau (TeamB)
Date: Fri, 09 May 2003 16:14
12 lines
1434 bytes
"JOHNNY LIWIS" <jone@chello.se> wrote in message
news:3ebb7c02$1@newsgroups.borland.com...
> Not so practical, especially when you have big files

You don't have to scan the entire file, just read in a fixed amount, say the
first 1K or so, and then scan that.  If it is ASCII text, then chances are
you won't run into any zeros.  If you do, then it is either UNICODE text or
non-text binary instead.


Gambit
Technical Details
Message-ID: <3ebbd35c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3eba4f4a@newsgroups.borland.com> <VA.00001c9d.01332329@email.address.sorry> <3ebb7c02$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,65ce5fe967ca5eb
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-09 09:21:02 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3eba4f4a@newsgroups.borland.com> <VA.00001c9d.01332329@email.address.sorry> <3ebb7c02$1@newsgroups.borland.com>
Subject: Re: Ascii or binary file
Date: Fri, 9 May 2003 09:14:02 -0700
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3ebbd35c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052496732 207.175.226.26 (9 May 2003 09:12:12 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail