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

Beginner ReadList




Hello, I am new to Mathematica and am having a little trouble figuring
out how to read a file and put the data into a variable so I can work
on it.

I have used 
In[1]:= data=ReadList[datafile,RecordLists->True,Number] and all I get
is that repeated as Out[1].

ReadList without the assignment seems to work OK and I  get a listing of
the data.  How does this work ? When I then try to look at data

In[2]:= data[[1]]

I get a repeat of the In[1] line.

If I do the ReadList, it creates a list, but if I then try ListPlot[%],
it gives me an error.

Also, is there an analogy to the rewind command. The file appears to
stay open and at the end of file. I had heard  there was a steep
learning curve for this program, but it looks like the reward will be
worthwhile.


Any help would be greatly appreciated as I slog uphill ! remove 1001 to
reply.



  • Prev by Date: Which Communications to Use for MathLink on NT?
  • Next by Date: Re: MathLink
  • Prev by thread: Re: Which Communications to Use for MathLink on NT?
  • Next by thread: Re: Beginner ReadList