Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Trying to export two column table to text file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77841] Re: Trying to export two column table to text file
  • From: nazdrovje at gmail.com
  • Date: Mon, 18 Jun 2007 06:55:19 -0400 (EDT)
  • References: <f532jq$38q$1@smc.vnet.net>

On Jun 17, 12:32 pm, Diana <diana.me... at gmail.com> wrote:
> 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.

Diana, I assume you are searching using the indexing service. This
service only indexes selected parts of your system. In order to get
the file to be generated in a more convenient location use the Insert/
File path menu command to insert a full path into the Export command,
then change the file name you selected (you have to select one, the
command doesn't let you generate a new file name) into the one you
really want.

Naz



  • Prev by Date: Re: Trying to export two column table to text file
  • Next by Date: Re: Trying to export two column table to text file
  • Previous by thread: Re: Trying to export two column table to text file
  • Next by thread: Re: Trying to export two column table to text file