comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Printf and line breaks
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Printf and line breaks [message #23245 is a reply to message #23244] Fri, 19 January 2001 11:13 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
ALAN FRAZIER (s007amf@news.wright.edu) writes:

> Sorry to bother everyone with another question. But, I am just at the
> beginning of the enduring process of learning IDL.

Yeah, you and me, both. :-)

> My current problem is with printf. I am trying to create a text output
> file that can be easily imported into a spreadsheet. From what I can
> tell, printf automatically line wraps after 80 or so characters. For my
> output, I want printf to print everything on the same line. I am
> wondering if anyone knows how to do this or if this is even possible?

When you open the file for writing, set the WIDTH keyword to
as wide a line as you need. 80 columns is the default
for historical reasons. (Are you old enough to remember
punch cards?)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: Printf and line breaks
Next Topic: z-buffer and pattern, modified vowels

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 11:33:48 PDT 2025

Total time taken to generate the page: 1.59941 seconds