MathGroup Archive 1996

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

Search the Archive

Re: problem exporting numbers to text file

  • To: mathgroup at
  • Subject: [mg3962] Re: problem exporting numbers to text file
  • From: wagner at (Dave Wagner)
  • Date: Mon, 13 May 1996 01:46:12 -0400
  • Organization: University of Colorado, Boulder
  • Sender: owner-wri-mathgroup at

In article <4mjpe5$b4u at>,
James Gregurich <bayou at> wrote:
>... export a list of numbers to a space
>delimited text file which imported into foxpro. I've run into a problem
>where the row exceeds 80 columns and the line chopped off with a '\' put at
>the end of it. ... I can't figure out how to
>increase the line width.
>I've tried
>SetOptions[$Output,PageWidth ->Infinity]

You're setting the pagewidth for your screen, not the file.  In order to
do the latter, you have to get a "handle" for the file.  Use
s = OpenWrite[filename, PageWidth->Infinity], and then write the
data using Write[s, expr].  Finally, close the file using Close[s].

		Dave Wagner
		Principia Consulting
		(303) 786-8371
		dbwagner at


  • Prev by Date: Re: multinomials: a programming question
  • Next by Date: Re: Inverse of IntegerDigits? and "Index" function?
  • Previous by thread: problem exporting numbers to text file
  • Next by thread: Re: problem with mma and ppp on Mac