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

Home » Public Forums » archive » Re: end-of-line termination
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: end-of-line termination [message #59185 is a reply to message #59184] Fri, 07 March 2008 09:36 Go to previous messageGo to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
The only problem I find is that IDL and C format codes do not readily mix.
Can "\r\n" be translated to an IDL format code? H.


"ben.bighair" <ben.bighair@gmail.com> wrote in message
news:feeb16e9-11e1-4625-bb8a-b38fd6778991@34g2000hsz.googleg roups.com...
> On Mar 7, 11:48 am, Peter Clinch <p.j.cli...@dundee.ac.uk> wrote:
>> Haje Korth wrote:
>>> Hi,
>>> I am writing ASCII files in IDL using PRINTF that require to have a
>>> CR+LF
>>> end-of-line termination. Is there a way to force this in UNIX, which
>>> uses LF
>>> only?
>>
>> You could thug it with a system call from your program to unix2dos (or
>> whatever utility) after you've finished...
>
> Hi,
>
> That might be the easiest, but if you have a lot of these to do I
> think the C printf kind of formatting allows you to add combinations
> of "\f\n" to a line of output.
>
> ?printf-style
>
> gets you there.
>
> Cheers,
> Ben
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: using the WHERE function on a portion of an array
Next Topic: Re: Object Graphics Windows in X Windows

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

Current Time: Sat Oct 11 20:26:55 PDT 2025

Total time taken to generate the page: 0.47782 seconds