The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Mark Jones on April 01, 2006, 08:09:57 PM

Title: Which more commonly terminates lines: CR or LF?
Post by: Mark Jones on April 01, 2006, 08:09:57 PM
Hi, is it Unix which uses only one to delimit text lines? I can't recall... (Senile decay?) :toothy

If an app were to parse lines of any ASCII text file, is it safe to assume the linefeed will always be the last character of each line?
Title: Re: Which more commonly terminates lines: CR or LF?
Post by: ramguru on April 01, 2006, 08:15:11 PM
Windows(LF+CR)
Unix(LF)
Mac(CR)
IMO you must write a func that will determine it...no assumption is save :)
Title: Re: Which more commonly terminates lines: CR or LF?
Post by: MichaelW on April 01, 2006, 09:28:10 PM
The order for DOS and Windows is actually CR+LF.


Title: Re: Which more commonly terminates lines: CR or LF?
Post by: ramguru on April 01, 2006, 09:31:57 PM
Yep my mistake sorry, order really is important... :green