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