Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14815

Re: a trivial task?

From Ulrich Arndt <ulrich.arndt@data2knowledge.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: a trivial task?
Date 2013-06-12 09:24 +0000
Message-ID <kp9enm$2sh$1@smc.vnet.net> (permalink)
References <20130611062851.5976B6A22@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


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

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

Ulrich
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
>
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: a trivial task? Ulrich Arndt <ulrich.arndt@data2knowledge.de> - 2013-06-12 09:24 +0000

csiph-web