MathGroup Archive 2007

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

Search the Archive

Trying to export two column table to text file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77819] Trying to export two column table to text file
  • From: Diana <diana.mecum at gmail.com>
  • Date: Sun, 17 Jun 2007 06:12:34 -0400 (EDT)

All,

I am trying to convert a list of numbers, such as:

{4, 5, 10, 11, 3, 79, ...}

to a two column text file such as:

1 4
2 5
3 10
4 11
5 3
6 79 ...

Let me use the following example. Assume that I have defined an
"r[n_]" function of arbitrary integers.

tt = Flatten[Prepend[Table[Numerator[r[n]], {n, 4, 100}], {1, 1, 5}]]

tttable = Table[{j, tt[[j]]}, {j, 1, Length[tt]}]

Export["sequence.txt", tttable]

I get an output line of "sequence.txt", but then can not find the
file.

I am using Windows Vista, and believe I am searching the whole
computer.

Diana M.



  • Prev by Date: Re: FFT of the piecewise step function
  • Next by Date: Animate (v.6)
  • Previous by thread: Re: Options for a very large computation
  • Next by thread: Re: Trying to export two column table to text file