Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Reading a file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg13534] Reading a file
  • From: Roger Mason <rmason at sparky2.esd.mun.ca>
  • Date: Fri, 31 Jul 1998 04:33:42 -0400
  • References: <6ouom0$j02@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,

I am trying to read simple 2-column ASCII data into Mathematica 3.0. The
code is given below. 


The files are of variable length so I want to trap the EndOfFile
returned by Read to exit the While loop. I have tried several variants
(e.g. enclosing EndOfFile in quotes but when I have the If statement
inside While the list temp
is always returned empty, even though the counter (i) reaches 250.

What is wrong with the code?

Any help will be much appreciated.

Roger Mason



  • Prev by Date: Re: discrete math, how many zeroes in 125!
  • Next by Date: Re: Packages Search Path: how to set it?
  • Previous by thread: problem with Needs[ ] command
  • Next by thread: displaying animation grahps in one place