reading from file
- To: mathgroup at smc.vnet.net
- Subject: [mg80115] reading from file
- From: "Jesse Sheinwald" <jsheinwald at comcast.net>
- Date: Mon, 13 Aug 2007 04:27:34 -0400 (EDT)
This is an example of reading from a file that I took from the book "An Introduction to Programming with Mathematica" by Wellin. The author provides data for a number of examples and the reader is instructed to store this date either in the BaseDirectory or the UserBaseDirectory. I entered the Mathematica code (v6) as this with the programs response... datafile = ToFileName[{$BaseDirectory, "Applications", "IPM3", "DataFiles"}, "dataset.m"] Out[4]= C:\Documents and Settings\All Users\Application Data\Mathematica\Applications\ \IPM3\DataFiles\dataset.m data = Import[datafile, "Table"] $Failed The idea is to read in file dataset.m and to use it as data. In the event this was some v6 quirk, I tried this with Mathematica 5.2 and it also didn't work What am I doing wrong?
- Follow-Ups:
- RE: reading from file
- From: "David Annetts" <davidannetts@aapt.net.au>
- RE: reading from file