Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: Writing strings without quotes and linefeeds

  • To: mathgroup at
  • Subject: [mg13416] Re: Writing strings without quotes and linefeeds
  • From: Tobias Oed <tobias at>
  • Date: Thu, 23 Jul 1998 03:33:03 -0400
  • Sender: owner-wri-mathgroup at

sean_ross_at_pl-04m3 at wrote:
>      I am attempting to write a data file to disk using spaces as the
>      delimiters and linefeeds as record separators.  When I use Write,
> as
>      in
>      Write[stream,"mystring \n","next line"]
>      what actually appears in the file is
>      "mystring \n""next line"
>      rather than:
>      mystring
>      next line
>      Does anyone know how to append line feeds onto strings and not put
>      quotes around strings?


SetOptions[stream,{FormatType->OutputForm}] to get rid of the quotes and

WriteString instead of write,
I think this sould work but cannot check it right now since both my
mathematica licences are under  heavy use.

  • Prev by Date: Re: The "Users" directory under NT
  • Next by Date: importing LaTeX
  • Previous by thread: Re: writing programs
  • Next by thread: importing LaTeX