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

Home » Public Forums » archive » Text output line too short, width = val not working
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: Text output line too short, width = val not working [message #91108 is a reply to message #91105] Thu, 04 June 2015 07:11 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
laura.hike@gmail.com writes:

> I'm writing an ascii file of data and some of the numbers are wrapping to a second line. On a couple of web pages, I find a suggested solution of adding width = somevalue to the end of my openw statement. I tried several different values, all the way up to 400, and found no change in my output. Any idea why this is? The relevant code and output lines are below. Interestingly, the header line (just text) prints out fine regardless of whether I use a width parameter.

Well, you are using a FORMAT statement. So, I wouldn't expect a change
when the WIDTH of the line is changed. If the FORMAT statement doesn't
allow a single line of output, EVEN when the WIDTH of the line is
changed, I would immediately suspect something is up with the FORMAT
statement.

Yours is so complicated, however, that I can't tell what the problem
might be. Try a very simple FORMAT and see if that doesn't shed some
light on this problem, before you retreat to your more complicated
design.

Cheers,

David

P.S. You ARE sure that the wrapping you are seeing is not related to the
configuration of the software you are using to view the output file,
right? For example, I have to turn Word Wrap off in my Notepad
application to view these kinds of text files properly.
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL v8 not recognizing bash environment variable
Next Topic: How to supress output from going to new line

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

Current Time: Wed Oct 08 11:41:41 PDT 2025

Total time taken to generate the page: 0.00373 seconds