News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Which more commonly terminates lines: CR or LF?

Started by Mark Jones, April 01, 2006, 08:09:57 PM

Previous topic - Next topic

Mark Jones

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?
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

ramguru

Windows(LF+CR)
Unix(LF)
Mac(CR)
IMO you must write a func that will determine it...no assumption is save :)

MichaelW

The order for DOS and Windows is actually CR+LF.


eschew obfuscation

ramguru

Yep my mistake sorry, order really is important... :green