Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: end-of-line...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 10 Topic 5517 of 6400
Post > Topic >>

Re: end-of-line termination

by "Haje Korth" <haje.korth@[EMAIL PROTECTED] > Mar 7, 2008 at 11:59 AM

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@[EMAIL PROTECTED]
> wrote in message 
news:63da37F277atiU1@[EMAIL PROTECTED]
> 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@[EMAIL PROTECTED]
     http://www.dundee.ac.uk/~pjclinch/
 




 10 Posts in Topic:
end-of-line termination
"Haje Korth" &l  2008-03-07 11:33:26 
Re: end-of-line termination
Peter Clinch <p.j.clin  2008-03-07 16:48:44 
Re: end-of-line termination
"ben.bighair" &  2008-03-07 08:59:44 
Re: end-of-line termination
"Haje Korth" &l  2008-03-07 12:36:06 
Re: end-of-line termination
"Haje Korth" &l  2008-03-07 11:59:37 
Re: end-of-line termination
"ben.bighair" &  2008-03-07 10:24:54 
Re: end-of-line termination
"ben.bighair" &  2008-03-07 10:38:26 
Re: end-of-line termination
"Haje Korth" &l  2008-03-07 15:33:10 
Re: end-of-line termination
"R.G. Stockwell"  2008-03-07 12:13:17 
Re: end-of-line termination
"Haje Korth" &l  2008-03-07 15:34:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Nov 19 10:19:36 CST 2008.