PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Other Forums > Computer Help
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Search this Thread
Old 11-2-02, 10:18 AM   #1
aza
everything has beauty
 
aza's Avatar
 
Join Date: Jan 2002
Location: Kyiv, Ukraine
Posts: 268
Reputation: 5
UNIX and DOS file formats?

What the differences in UNIX and DOS text files formats?
__________________
Yours faithfully,
Yaroslav Zaremba
aza is offline  
Old 11-2-02, 10:49 AM   #2
RocketJeff
just a former customer...
 
RocketJeff's Avatar
 
Join Date: Oct 2002
Location: Chicago, IL
Posts: 1,630
Reputation: 9
In MS-DOS (and Windows), text file lines end with both a carrage-return and a new-line (<cr><nl>) characters.

In Unix, text files only have a new-line character at the end.
RocketJeff is offline  
Old 11-2-02, 11:09 AM   #3
aza
everything has beauty
 
aza's Avatar
 
Join Date: Jan 2002
Location: Kyiv, Ukraine
Posts: 268
Reputation: 5
Thank you for answering.

Does it mean that 1-string text files in DOS and UNIX have just the same format?
__________________
Yours faithfully,
Yaroslav Zaremba
aza is offline  
Old 11-2-02, 11:16 AM   #4
RocketJeff
just a former customer...
 
RocketJeff's Avatar
 
Join Date: Oct 2002
Location: Chicago, IL
Posts: 1,630
Reputation: 9
Quote:
Originally posted by aza
Does it mean that 1-string text files in DOS and UNIX have just the same format?
Depends on how the file was created. Some editors/utilities automatically put the end-of-line character(s) on the last line of a file (even if it is only a single line).

In this case, the file size will differ by 1 byte at most.
RocketJeff is offline  
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:56 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.