Binary or Ascii Text?
- From: "Claude Yih" <wing0630@xxxxxxxxx>
- Date: 30 Mar 2006 16:51:09 -0800
Hi, everyone. I got a question. How can I identify whether a file is a
binary file or an ascii text file? For instance, I wrote a piece of
code and saved as "Test.c". I knew it was an ascii text file. Then
after compilation, I got a "Test" file and it was a binary executable
file. The problem is, I know the type of those two files in my mind
because I executed the process of compilation, but how can I make the
computer know the type of a given file by writing code in C? Files are
all save as 0's and 1's. What's the difference?
Please help me, thanks.
.
- Follow-Ups:
- Re: Binary or Ascii Text?
- From: void * clvrmnky()
- Re: Binary or Ascii Text?
- From: SM Ryan
- Re: Binary or Ascii Text?
- From: Keith Thompson
- Re: Binary or Ascii Text?
- Prev by Date: Re: checking constant conditions on compile time
- Next by Date: Re: Convert Java <long> to C <?>
- Previous by thread: Convert Java <long> to C <?>
- Next by thread: Re: Binary or Ascii Text?
- Index(es):
Relevant Pages
|
|