MathGroup Archive 2007

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

Search the Archive

Re: reading from file


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"]


  • Prev by Date: Re: Intensive numerical calculations
  • Next by Date: Re: rotation angles from rotation matrix
  • Previous by thread: RE: reading from file
  • Next by thread: Re: reading from file