MathGroup Archive 1998

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

Search the Archive

Re: Writing output to text files

Jim Banaszak wrote:
> What is the easiest way to write columns of Mathematica output to a text
> file?
>   In other words, if:
> f[t_]:=t^2; g[t_]:=t^2
> How can I output the columns t, f[t], and g[t] to a tab, space, or comma
> delineated text file?
> Thanks,
> Jim Banaszak
> --
> --
> Jim Banaszak
> Department of Civil Engineering
> Northwestern University
> 2145 Sheridan Road
> Evanston, IL 60208-3109
> e-mail:
> Phone:   847-459-3809
> fax:       630-252-1845

My default trick is to make a matrix with the numbers I want, then use
ToString and convert the whole thing to a string and put in the
characters I want with the string manipulation commands built in to
mathematica.  When I am happy with the result, I then Write it to a
Remove the _nospam_ in the return address to respond.

  • Prev by Date: Re: Mathlink problem with lists of reals
  • Next by Date: Re: Possible bug in FindRoot[] in Mathematica 3.0
  • Prev by thread: Writing output to text files
  • Next by thread: Re: Writing output to text files