Techware Labs Header

Forums have moved

See this announcement for more details, or just go directly there.

Prev Previous Post   Next Post Next
  #1  
Old 03-18-2002, 02:16 PM
Keefe Keefe is offline
Administrator
 
Join Date: May 2002
Location: Wisconsin
Posts: 2,337
Send a message via ICQ to Keefe Send a message via AIM to Keefe Send a message via MSN to Keefe Send a message via Yahoo to Keefe
Default Binary vs. ASCII Files

Here is something that i found while doing some research on ASCII.  It might be of some use...

At heart all files are binary files -- that is, a collection of 1s and 0s. But there's a subset of binary files we call ASCII, or plain text files. ASCII is short for American Standard Code for Information Interchange.


An ASCII file contains plain text. Each byte in an ASCII file represents a single character according to the ASCII code.

Ignoring that last bit

ASCII text uses only the first seven bits of an eight-bit byte to represent a character. Using seven bits gives you 128 choices, more than enough for the alphabet, numbers, and common punctuation. The eighth bit in each byte is ignored. In binary files, though, every bit counts.


So that's the chief difference between ASCII files and binary files: In ASCII files each byte represents exactly one character, and you can ignore the eighth bit of each byte. All computer programs, and most non-text data formats are stored in binary format, in which all eight bits in each byte are significant. Even word processor files are stored as binary files, because they contain formatting information in addition to the text.


Lately extended character sets have started using all eight bits to add symbolic and graphic characters, but there's no accepted standard for how these characters are mapped. ASCII has been replaced in many applications by UniCode, which uses 16 bits per character to represent non-Roman alphabets like Japanese, Chinese, and Cyrillic.
__________________
It's crazy I'm thinking, just knowing that the world is round.
-http://www.techwarepc.com/ - The Technology Experts
Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:24 AM. Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum style by ForumMonkeys.