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: [mg77903] Re: Trying to export two column table to text file
  • From: nazdrovje at gmail.com
  • Date: Tue, 19 Jun 2007 06:43:48 -0400 (EDT)
  • References: <f532jq$38q$1@smc.vnet.net><f55qi8$k83$1@smc.vnet.net>

On Jun 18, 1:33 pm, Diana <diana.me... at gmail.com> wrote:
> 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.

The double '\' stems from the fact that \ is used to indicated the
start of an escape code, like \n for newline or \t for tab. To escape
the escape the \ has to be doubled. If you use Insert/file path, the
slashes are doubled automatically.



  • Prev by Date: Re: Substitutions
  • Next by Date: Documentation Center notebook fragment not loadable
  • Previous by thread: Re: Trying to export two column table to text file
  • Next by thread: Animate (v.6)