MathGroup Archive 2013

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

Search the Archive

Re: a trivial task?

Riffle seems to be what you are looking for...

exp = {"I do not", "understand", "this "};
Export[StringJoin[Riffle[exp, "\n"]],"exp.txt"]

Am 11.06.2013 um 08:28 schrieb Francisco Gutierrez:

> Friends:
> Suppose I have a string variable, say:exp={"I do not", "understand", this"}
> I want to export this variable to a text file, so that each part of exp is separated by a line (\n). Thus I want to get:I do notunderstandthis
> How can I achieve this? Thanks
> Francisco

  • Prev by Date: System Modeler and Mathematica 9
  • Next by Date: Re: a trivial task?
  • Previous by thread: a trivial task?
  • Next by thread: Re: a trivial task?