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 #59188 is a reply to message #59185] Fri, 07 March 2008 08:59 Go to previous messageGo to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Peter,
Thanks for your response. Is this really my only option? I know that I can
also "convert" the file by reading and writing the file in IDL character by
character and replacing the line endings. The problem is that this adds
significant overhead when lots of files 100MB each are written. Therefore I
wanted to write the files correct the first time around. I was wondering if
adding \r\n to the format statement would do the trick?

Haje


"Peter Clinch" <p.j.clinch@dundee.ac.uk> wrote in message
news:63da37F277atiU1@mid.individual.net...
> 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...
>
> Pete.
> --
> Peter Clinch Medical Physics IT Officer
> Tel 44 1382 660111 ext. 33637 Univ. of Dundee, Ninewells Hospital
> Fax 44 1382 640177 Dundee DD1 9SY Scotland UK
> net p.j.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/
[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 06:13:34 PDT 2025

Total time taken to generate the page: 0.00642 seconds