The Input Files

< Back to File Read Functions | Forward to The Program >

The ten text files used in this demonstration are examples of delimited data files, and all contain the following data lines:

    "Scott","Chicago",39
    "Amy","Nokomis",74
    "Ray","Mt Olive",78

The files differ only in the characters used as line terminators (with the exception of bad3.dos, which is a malformed DOS file).

Input File Description
data.dos A correctly formatted DOS file:
Line terminator = CR LF.
data.unx A correctly formatted Unix file:
Line terminator = LF.
data.mac A correctly formatted Macintosh file:
Line terminator = CR.
noendeol.dos A correctly formatted DOS file except that there is no CR LF after the last line.
Fairly common.
noendeol.unx A correctly formatted Unix file except that there is no LF after the last line.
Fairly common.
noendeol.mac A correctly formatted Macintosh file except that there is no CR after the last line.
Fairly common.
eof.dos A correctly formatted DOS file that ends with a DOS end-of-file marker.
This used to be the standard, but it's rare today.
bad1.dos Malformed file:
DOS line terminator reversed (LF CR).
Rare.
bad2.dos Malformed file:
Line terminator = CR CR LF.
Not very common, but it happens more than you'd expect.
bad3.dos Malformed file:
DOS format, but contains an embedded end-of-file marker.
Rare.

< Back to File Read Functions | ^ Up to Top | Forward to The Program >