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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 19 Dec 2007 16:18:56 +0800 <C_C_Kuo@xxxxxxxxxxxxxx> 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".

I guess that you could read thru the data and make sure that all bytes are in
a specific subset, perhaps a-zA-Z0-9, various punctuation, NL/CR, etc. but
even if so it does not mean that none of that data is float or int.

:>I know both of them are stream of bytes but interpreted by different ways.
:>My questions are:
:>1. How can I know this without opening it?

Not a clue.

:>2. how can I see all the information in a file, include all the control characters, like linein, print character and line feed, etc.

fopen in binary.

:>3. Is there any tool on Linux can open binary file?

I am sure that many can.

:>4. Is there any tool on Linux can transfer ASCII to binary and binary to ASCII?

What does that mean?

--
Binyamin Dissen <bdissen@xxxxxxxxxxxxxxxxxx>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux