Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Help w/ conversion of txt file to useable form for Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14209] Help w/ conversion of txt file to useable form for Mathematica
  • From: darrmis at aol.com (Darrmis)
  • Date: Wed, 7 Oct 1998 03:00:40 -0400
  • Organization: AOL http://www.aol.com
  • Sender: owner-wri-mathgroup at wolfram.com

Can anyone help me with a problem.  I am using another program which
outputs a bunch of data into several text files.  For example, an
outputed file would look like:

((surface_one 3)
(x
7
3
9
)
(y
2
1
6
)
(x-accel
24
17
2
)
)

Except the number of entries would be several thousand.  Each new line
is a carriage return.  I would like to get this data into mathematica
in the form of lists.  For instance, based on the above example, I
would like to define in mathematica:

xcoord={7,3,9};
ycoord={2,1,6};
xaccel={24,17,2};

Does anybody know how to do this easily.  I would be very grateful for
help.  Thanks.


Karl Kevala
karlk at eng.umd.edu


  • Prev by Date: 3-D to 2-D slice revisited
  • Next by Date: Solving simultaneous eqns
  • Previous by thread: Re: 3-D to 2-D slice revisited
  • Next by thread: Re: Help w/ conversion of txt file to useable form for Mathematica