Re: File Output in IDL [message #55646] |
Wed, 29 August 2007 02:38 |
incognito.me
Messages: 16 Registered: August 2007
|
Junior Member |
|
|
On 28 Aug., 18:02, David Fanning <n...@dfanning.com> wrote:
> incognito.me writes:
>> I'm trying to generate a random array (nxn) that should be output as a
>> file with .txt extension.
>> The File should also begins with a five line header.
>> The problem is that for row and column number greater than 7 the
>> output is all mixed up.
>
> Try adding a WIDTH keyword to your OpenW statement:
>
> http://www.dfanning.com/fileio_tips/width.html
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Thank you for the hint.
cheers
|
|
|
Re: File Output in IDL [message #55667 is a reply to message #55646] |
Tue, 28 August 2007 09:02  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
incognito.me writes:
> I'm trying to generate a random array (nxn) that should be output as a
> file with .txt extension.
> The File should also begins with a five line header.
> The problem is that for row and column number greater than 7 the
> output is all mixed up.
Try adding a WIDTH keyword to your OpenW statement:
http://www.dfanning.com/fileio_tips/width.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|