MathGroup Archive 1996

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

Search the Archive

help! to input data...


well, silly me.
I thought i was pretty good at the basics of mathematica, but today i 
tried to input some numerical data that was comma delimited. i.e.

456,-45,21,0,5
43,25,3,66,65
...
...
...

it is a large data file (10Mb+) with 5 numbers per line. i can't
convert the commas to tabs easily.
 i tried simply using:

data=ReadList["c:\micro.dat", Number, RecordLists->True];

then:

data=ReadList["c:\micro.dat", RecordLists->True,
WordSeparators->{","}];

and

data=ReadList["c:\micro.dat", Number, RecordLists->True,
TokenWords->","];

but all i ever get is the first number and an error such as:

Read::readn: Syntax error reading a real number from c:\micro.dat.

would someone please tell me the best way to input this data file??
it's driving me crazy that i can't figure out something so basic.

thanks,
todd





==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: Mathematica-Matlab
  • Next by Date: Running Mathematica 2.1 under Windows95?
  • Previous by thread: Re: manipulating expressions
  • Next by thread: Re: help! to input data...