MathGroup Archive 2004

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

Search the Archive

Write long table into file problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg51017] Write long table into file problem
  • From: Jiang Xiao <jiang.xiao at physics.gatech.edu>
  • Date: Fri, 1 Oct 2004 04:49:44 -0400 (EDT)
  • Organization: Georgia Institute of Technology
  • Sender: owner-wri-mathgroup at wolfram.com

hi,all

I have a problem in saving a table into a file,

say i want to write a list of 7 numbers into file, I use the following code

------------------------------
strm = OpenWrite["~/output/test.dat"];
a = Random[ ];
temp = {{a, a, a, a, a, a, a}};
Write[strm, OutputForm[TableForm[Map[FortranForm, temp, {2}], 
TableSpacing -> {0, 3}]]];
Close[strm];
------------------------------

and here is how test.dat looks like:
----------------------------------------
0.7347723298312644   0.7347723298312644   0.7347723298312644 
0.734772329831\
2644   0.7347723298312644   0.7347723298312644   0.7347723298312644
----------------------------------------

it save to two line with "\" at the end of first line.
Are there anybody know how to save it into just one line?

thanks you all,

Jiang


  • Prev by Date: Re: Re: Re: Courier New Button, selecting cells without brackets
  • Next by Date: Re: Colors in ScatterPlot3D?
  • Previous by thread: Re: Re: Re: Courier New Button, selecting cells without brackets
  • Next by thread: Re: Write long table into file problem