MathGroup Archive 1998

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

Search the Archive

Re: Writing strings without quotes and linefeeds

  • To: mathgroup at smc.vnet.net
  • Subject: [mg13416] Re: Writing strings without quotes and linefeeds
  • From: Tobias Oed <tobias at physics.odu.edu>
  • Date: Thu, 23 Jul 1998 03:33:03 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

sean_ross_at_pl-04m3 at smtpgw1.plk.af.mil 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?

Try 

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.
Tobias


  • 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