Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16778
| From | "Hans Michel" <hmichel@cox.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Controlling breaking of lines in output of Write |
| Date | 2014-04-11 06:09 +0000 |
| Message-ID | <li80v0$acf$1@smc.vnet.net> (permalink) |
| References | <o7Fv1n00Y1r5Uyi017FwTD> |
| Organization | Time-Warner Telecom |
Derivator Straight from the Help Files file1 = $TemporaryPrefix <> "test1"; stream = OpenWrite[file1, PageWidth -> 60]; Write[stream, Expand[(x + y)^5]]; Close[stream]; You are looking for the PageWidth option in the OpenWrite function when initializing the stream. PageWidth -> Infinity no linebreaking I believe the default is PageWidth -> 80 (0--79) If you output a newline character into your stream then you control where the lines are broken. Hans -----Original Message----- From: derivator [mailto:derivatorb@gmail.com] Sent: Thursday, April 10, 2014 2:10 AM Subject: Controlling breaking of lines in output of Write Dear all, When I use Write["file", expression], I find that if the expression is sufficiently long the output in "file" is broken into two or more lines. Usually this happens for expressions longer than 79 characters. Is it possible to change 79 to some other value, or control how the lines are broken in the output? Thanks in advance Derivator
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar
Re: Controlling breaking of lines in output of Write "Hans Michel" <hmichel@cox.net> - 2014-04-11 06:09 +0000
csiph-web