EndOfFile
- To: mathgroup at yoda.physics.unc.edu
- Subject: EndOfFile
- From: rlove at raptor.rmnug.org (Robert B. Love )
- Date: Wed, 9 Mar 94 15:35:24 -0700
Math Groupers,
Somebody explain Read & EndOfFile to me, preferably using
monosyllables and diagrams.
My code looks like this:
While[(headline = Read[file,String]) != 10,(
statement;
statement;
)
];
And it works fine. It reads the lines and processes them and the
loop terminates when at EOF. However if I change != 10 to
!= EndOfFile it fails to run. Why?
-----------------------------------------------------------------
Bob Love rlove at raptor.rmnug.org (NeXT Mail OK)
BIX: rlove
-----------------------------------------------------------------