*To*: mathgroup@smc.vnet.net*Subject*: [mg11187] Re: [mg11122] Writing output to text files*From*: seanross@worldnet.att.net*Date*: Wed, 25 Feb 1998 03:31:55 -0500*References*: <199802240240.VAA21725@smc.vnet.net.>

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: j-banaszak@nwu.edu > 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 file. -- Remove the _nospam_ in the return address to respond.

**References**:**Writing output to text files***From:*j-banaszak@nwu.edu (Jim Banaszak)