Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1994

[Date Index] [Thread Index] [Author Index]

Search the Archive


  • To: mathgroup at
  • Subject: EndOfFile
  • From: rlove at (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,(

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  (NeXT Mail OK)
                           BIX: rlove

  • Prev by Date: digital logic circuits
  • Next by Date: Re: Transferring notebooks from the Mac to the NeXT
  • Previous by thread: digital logic circuits
  • Next by thread: Re: EndOfFile