Re: reading from file
- To: mathgroup at smc.vnet.net
- Subject: [mg80153] Re: reading from file
- From: chuck009 <dmilioto at comcast.com>
- Date: Tue, 14 Aug 2007 06:52:27 -0400 (EDT)
You need to first create the file with data on the disk then use Import: (* First create path to a file on disk *) myFile = ToFileName["C:", "justonc.dat"]; (* set up some data in table format *) myData = {{1, 2, 3, 4}, {5, 6, 7, 8}}; (* send data to path of myFile *) Export[myFile, myData] (* retrieve data from path in Table format *) gotData = Import[myFile, "Table"]