View Single Post
  #2  
Old 10-26-2007, 02:40 PM
unix unix is offline
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Re: text file in suse a ASCII file or binary file?

On Fri, 26 Oct 2007, Xiaochuan Shen wrote:-

>Hello Group!
>
>I am really new to Linux and just want to ask a trivil question:
>
>text file in suse a ASCII file or binary file?


A text file is usually stored in plain ASCII format.

>I know that these two types of files are stored differently in an operating
>system but not sure about the story with Suse or Linux/Unix. Can anyone tell
>me something?


Basically the plain text files are the same between the different OSes,
although there are some minor differences between the formats relating
to the End Of Line characters.

Linux, of which openSUSE is one variant, along with the various BSD and
UNIX use the ASCII character 10 (0x0a) as the EOL marker. MacOS[0] uses
the ASCII character 13 (0x0d) as the EOL marker. DOS/Windows[1] is
awkward and uses the ASCII character sequence 13 followed by 10 (0x0d
0x0a) as its EOL marker.


[0] Mac OS 8.5 does anyway. Haven't used Mac OSX so don't know if it
changed when the kernel became BSD based.

[1] And almost all the other DOS compatible OSes.

Regards,
David Bolt

--
www.davjam.org/lifetype/ www.distributed.net: OGR@100Mnodes, RC5-72@15Mkeys
| SUSE 10.1 32bit | openSUSE 10.2 32bit | openSUSE 10.3 32bit
SUSE 10.0 64bit | SUSE 10.1 64bit | openSUSE 10.2 64bit |
RISC OS 3.11 | RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC
Reply With Quote