Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*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 2000

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

Search the Archive

Re: How to get two values from a file into two lists?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg24926] Re: How to get two values from a file into two lists?
  • From: Lawrence Walker <lwalker701 at earthlink.net>
  • Date: Sun, 20 Aug 2000 01:35:21 -0400 (EDT)
  • Organization: Morgan State University: COMSARE
  • References: <8nlhff$98u@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

Try ReadList["filename",{Number,Number}].  Make sure that you set the current
working directory using the SetDirectory command to that which your file
resides.

Lawrence

robpeterson at iname.com wrote:

> I'm embarrassed to ask for help here since this must be so simple.
> But, I can't pull it off.  And there are many kind souls here that
> have taken the time to help me in the past.  I hope I'm not pushing my
> luck.....
>
> I have a text file with x and y values, space delimited (Mathematica likes
> that I gather) with CR LF at the end of each pair:
>
> x1 y1 <ret>
> x2 y2 <ret>



  • Prev by Date: RE: Using output of a Fit
  • Next by Date: Re: Rule
  • Previous by thread: Re: How to get two values from a file into two lists?
  • Next by thread: syntax help..