MathGroup Archive 2002

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

Search the Archive

Re: How to export plain text numbers!?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg36781] Re: How to export plain text numbers!?
  • From: Marek Twardochlib <marektt at web.de>
  • Date: Wed, 25 Sep 2002 01:51:01 -0400 (EDT)
  • References: <ammfo0$lkj$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Soxos wrote:
> 
> Hi,
> I'm trying to export a table from Mathematica 4.0 to Notepad, for examples,
> or something similar, but it's impossible for me! It always exports the cell
> with all its "rubbish", or an image (if I use Word).
> How can I export just plain _numbers_?


Try with this:


WriteSimpleTableForm[file_String, data_List, opts___] := Module[{str},

  str = OpenWrite[file];

  WriteString[str, ToString[TableForm[data, opts]]];

  Close[str]
]



This is my small solution for this problem.

marek


  • Prev by Date: timing with Play
  • Next by Date: C code for dual processor machine
  • Previous by thread: How to export plain text numbers!?
  • Next by thread: Re: How to export plain text numbers!?