Techware Labs Header

Forums have moved

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

  #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
  #2  
Old 03-18-2002, 02:19 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 Re: Binary vs. ASCII Files


      _           _                
   _ / \         / \ _            
  / \\  \       /  // \            
  \  \\  \     /  //  /            
   \  \\  \   /  //  /            
    \  \\  \_/  //  /              
     \             /              
      |            |   _          
      |            |  / \          
      |            | /  /          
      |            |/  /          
      \               /            
       \             /            
        \___________/              

Live long, and ASCII  
__________________
It's crazy I'm thinking, just knowing that the world is round.
-http://www.techwarepc.com/ - The Technology Experts
Reply With Quote
  #3  
Old 03-18-2002, 06:27 PM
vee_ess's Avatar
vee_ess vee_ess is offline
Super Moderator
 
Join Date: Aug 2001
Location: Phoenix, Arizona
Posts: 2,781
Send a message via ICQ to vee_ess Send a message via AIM to vee_ess Send a message via MSN to vee_ess Send a message via Yahoo to vee_ess
Default Re: Binary vs. ASCII Files

not exactly true keefe, when programming with ASCII you can use 256 char's. There are two sets in ASCII and the second is more for decoration than anything
__________________

It's not a car, it's an addiction.
The only carb that matters is under the hood.
There's an option for most vehicles that increases brake horsepower, increases mileage, increases driver control, lasts longer than the alternative, and even reduces the price of the vehicle. Despite all this, most people in this country choose the alternative, an automatic transmission.

Reply With Quote
  #4  
Old 03-18-2002, 07:25 PM
Bear
 
Posts: n/a
Default Re: Binary vs. ASCII Files

ASCII and you'll get an ANSI
Reply With Quote
Reply


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 01:49 AM. Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum style by ForumMonkeys.