🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Ascii or binary file

#16590
From: Ed Mulroy [TeamB]
Date: Thu, 08 May 2003 13:02
14 lines
1685 bytes
I assume that by "ascii file" you mean a text file.  All text files are
binary files.  A text file has a limited set of values for each byte in the
file.  A binary file might be thought to be a text file if it happens to not
contain any values other than those in the ascii character set.

The operating system does not know if a file was intended to be a text file.
The only way to tell if the file has only bytes which are in the ascii
character set is to open the file and examine the data it contains.

.  Ed

> JOHNNY LIWIS wrote in message
> news:3eba4f4a@newsgroups.borland.com...
> How do I know if the file has binary or ascii content ?
Technical Details
Message-ID: <3eba558f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!216.166.71.14.MISMATCH!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3eba4f4a@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-08 06:08:06 PST
From: "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3eba4f4a@newsgroups.borland.com>
Subject: Re: Ascii or binary file
Date: Thu, 8 May 2003 09:02:47 -0400
Lines: 16
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.1106
NNTP-Posting-Host: 206.228.162.64
Message-ID: <3eba558f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052398991 206.228.162.64 (8 May 2003 06:03:11 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!216.166.71.14.MISMATCH!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail