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

Home » Public Forums » archive » Re: write unix textfile with windows idl
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: write unix textfile with windows idl [message #37744 is a reply to message #37740] Wed, 21 January 2004 08:56 Go to previous message
Norbert Hahn is currently offline  Norbert Hahn
Messages: 46
Registered: May 2003
Member
Klemens Barfus <klemens.barfus@forst.tu-dresden.de> wrote:

> Hello together,
> it seems to be a quite easy problem but I would like to write unix text
> files with idl operating under windows.

HM, I played a little and came up with some text the online help:

"The Windows-Only keywords BINARY and NOAUTOMODE are now obsolete. Input/Output
on Windows is now handled indentically to Unix, and does not require you to be
concerned about the difference between "text" and "binary" modes. These keywords
are still accepted for backwards compatibility, but are ignored."

Those keywords are ignored causing lines written with the printf command
are terminated by carriage return and line feed when Windows is the OS
and line feed only for Unix. Thus "handled indentically to Unix" is at
least hard to understand.
>
> How can I manage these ?

A work-around is to use writeu in stead of printf and use the string
procedure to format the text, i.e. to write some text and a number, the
following code works

writeu, 1, String( "Hello word, the year is", 2004), 10B

but looks ugly. Any other ideas?

Norbert
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: again strsplit
Next Topic: Strange widget_info(FIND_BY_UNAME...) results

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

Current Time: Fri Oct 10 15:16:52 PDT 2025

Total time taken to generate the page: 0.40130 seconds