Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: reading data files

  • To: mathgroup at
  • Subject: [mg31890] Re: [mg31880] reading data files
  • From: BobHanlon at
  • Date: Mon, 10 Dec 2001 06:14:29 -0500 (EST)
  • Sender: owner-wri-mathgroup at

In a message dated 12/9/01 7:24:05 AM, christophe.leponcin-lafitte at 

>I want to realize an input file for a Mathematica program, which has the
>form :
>For this time, I use an input file like :
>In reality, the input file contains 35 data files, and 92 parameters.
>But, when a person want to read or modify the input file, he doesn't 
>know which parameter he changes ! This is only a list of number and 
>string !
>So, how to import in Mathematica the lign, datafile1="toto.dat" or 
>parameter1=10, and keep only the information "toto.dat" or 10 in a 
>variable of the main program.

Clear[datafile1, datafile2, parameter1, parameter2];

ToExpression /@ ReadList["Macintosh HD:Documents:temp:datafile.txt", String];

{datafile1, datafile2, parameter1, parameter2}


Bob Hanlon
Chantilly, VA  USA

  • Prev by Date: Re: I Need advice on converting Mathematica files to JPEGS or Bitmaps
  • Next by Date: Re: Simple questions about Mathematica
  • Previous by thread: reading data files
  • Next by thread: Mathematica tensor product