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

Outputting Strings to a file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14175] Outputting Strings to a file
  • From: Tom Murray <tm8a at virginia.edu>
  • Date: Wed, 30 Sep 1998 02:04:22 -0400
  • Organization: UVa
  • Sender: owner-wri-mathgroup at wolfram.com

I am trying to output text to a file.  My data is in an array such as:

{1,"AL",0.500000,0.500000,0.500000,0.300000,1.000000}

or 

{"Line One","Line Two"}

The program that is going to read the output file doesn't want the
quotes or the commas.

I want the final file to look like:

Line One
Line Two
1 Al 0.500000 0.500000 0.500000 0.300000 1.000000

How do I get Mathematica to output text without the quotes?  If I can
get that I'm pretty sure I can get the numbers and spacing correct.

I'm running Mathmatica 3.0 on a powermac if that is important.

Thanks for any help.

-- 
Tom Murray

     I believe in what I see
     I believe in what I hear
     I believe that what I'm feeling
     Changes how the world appears 

     Rush - "TOTEM" - Test For Echo


  • Prev by Date: Re: Nonlinear Differential Equation
  • Next by Date: Free Rubiks cube package
  • Previous by thread: Re: roots of BesselJPrimes
  • Next by thread: Re: Outputting Strings to a file