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: [mg77872] Re: Trying to export two column table to text file
  • From: Diana <diana.mecum at gmail.com>
  • Date: Mon, 18 Jun 2007 07:11:13 -0400 (EDT)
  • References: <f532jq$38q$1@smc.vnet.net>

Jean-Marc,

Thank you for your time and persistence. You solved my problem with
the following line:

Export["C:\\Users\\Diana\\Documents\\sequence.txt",
MapIndexed[StringJoin[ToString[#2[[1]]], " ",
     ToString[#1]] & , tt], "Lines"]

where "tt" is the name of my list of integers.

For some reason, I don't have privileges to my own C directory. At
your suggestion, I needed to specify the export file path as my
Documents. Also, I accidentally discovered that I needed two "\\", not
one, between directories in the file path specification.

Thanks, you have saved me oodles of work.

Diana M.



  • Prev by Date: Mathematica 6 on Linux Crashed Down
  • Next by Date: Re: Help with formatting output
  • 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