MathGroup Archive 2006

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

Search the Archive

Re: Beginner--Exporting formatted text files

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63869] Re: Beginner--Exporting formatted text files
  • From: "Norbert Marxer" <marxer at mec.li>
  • Date: Fri, 20 Jan 2006 04:32:22 -0500 (EST)
  • References: <dqn7rc$l83$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Mcq

If your PaddedForm[...] expression corresponds to the symbol pf, then
the following does what you want:

Export["test.txt", StringReplace[#,"\n\n"->"\n"]&@ToString@pf, "Text"]

The StringReplace is necessary, because otherwise empty lines will be
inserted between the rows.
Note also that to see the alignment in an Editor, you should use
monospaced font (like Courier).

Best Regards
Norbert Marxer
www.mec.li


  • Prev by Date: Re: Beginner--Exporting formatted text files
  • Next by Date: Weiner process
  • Previous by thread: Re: Beginner--Exporting formatted text files
  • Next by thread: Re: Beginner--Exporting formatted text files