Re: importing data
- To: mathgroup at smc.vnet.net
- Subject: [mg16478] Re: importing data
- From: "Kevin J. McCann" <kevinmccann at Home.com>
- Date: Tue, 16 Mar 1999 03:59:37 -0500
- Organization: @Home Network
- References: <7cd6dv$o54@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Bernard, See the help on ReadList. I have a file called "dummy.dat" which looks like this 1.0 1.0 2.0 4.0 3.0 9.0 4.0 15.0 SetDirectory["C:\MyMathematica"]; (* where the file is *) (* This just reads them in as a single list *) ReadList["dummy.dat",Number] {1.,1.,2.,4.,3.,9.,4.,16.} (* Following reads them in as a list of pairs *) ReadList["dummy.dat",{Number,Number}] {{1.,1.},{2.,4.},{3.,9.},{4.,16.}} (* For kicks you can try this one *) ReadList["dummy.dat"] and see what you get. Kevin bernard keenan wrote in message <7cd6dv$o54 at smc.vnet.net>... >I wrote a C program that generated several hundred points. I printed the >data to a file titled econ.dat. I was wondering how I could import this data >into Mathematica and plot it. > >tia > >bernard keenan > > >