RE: how to know a binary or text file and show all the information in file

2007-12-19 Thread C_C_Kuo
s. Sincerely Yours, cckuo -Original Message- From: Manish Katiyar [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 19, 2007 9:48 PM To: C C Kuo(郭哲君) Subject: Re: how to know a binary or text file and show all the information in file Hmm... interesting. The only reason i can think of is

RE: how to know a binary or text file and show all the information in file

2007-12-19 Thread C_C_Kuo
ut); > } > It is quite wired, since sscanf only parse the value to uValue and doesn't > change the file token at all. > > Appreciate your help, > cckuo > > -Original Message----- > From: Manish Katiyar [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 19,

RE: how to know a binary or text file and show all the information in file

2007-12-19 Thread C_C_Kuo
ember 19, 2007 4:42 PM To: kernelnewbies@nl.linux.org Subject: Re: how to know a binary or text file and show all the information in file Hello! "File" utility should give you the information on what this file is. Just run file myfile.dat. If you mean that you need to transform binary

Re: how to know a binary or text file and show all the information in file

2007-12-19 Thread Rene Herman
On 19-12-07 09:18, [EMAIL PROTECTED] wrote: Could someone tell me how to know the file is binary or ASCII? I know both of them are stream of bytes but interpreted by different ways. I'm afraid your question means you are still confused with respect to this. Both type of files are _nothing_ bu

Re: how to know a binary or text file and show all the information in file

2007-12-19 Thread Binyamin Dissen
On Wed, 19 Dec 2007 16:18:56 +0800 <[EMAIL PROTECTED]> wrote: :>Could someone tell me how to know the file is binary or ASCII? I am by now means an expert, but the questions does not make any sense. You would need to define what an "ascii file" is, and how it is different from a "binary file".

Re: how to know a binary or text file and show all the information in file

2007-12-19 Thread Grigoriy Shcherbyak
Hello! "File" utility should give you the information on what this file is. Just run file myfile.dat. If you mean that you need to transform binary in printable form, then look to base64 coding functionality from openssl package - it can do this. Many tools can open binary files, it depends on w