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

Home » Public Forums » archive » Re: to R. Bauer
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: to R. Bauer [message #13981 is a reply to message #13978] Thu, 14 January 1999 00:00 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
TTs wrote:

> In article <369CED49.F40D6668@fz-juelich.de>, "R.Bauer" says...
>>
>>> Using IDL 5.1 in a PentiumII NT 4.0 box this line of code:
>>>
>>> for i=0L, 307199 do printf, wlun, image(i), format='(I1)'
>>>
>>> create files with RETURN (\r) and LINE FEED (\n) terminations...
>>>
>>> How could I modify this so just RETURNS (^M) is used to finish the lines?
>>
>> Use the binary key with openw
>
> Could you plase tell me more details about this? I am a kinda of newbie with
> IDL...

file='test'
OPENW, lun, file,/GET_LUN ,/BINARY
for i=0L, 100 do printf, lun, byte(i)
FREE_LUN,lun

I don't know if image is a function or an array. If you mean an array you should
use [i].

R.Bauer
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL using MATLAB DLL's
Next Topic: Slicer3

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

Current Time: Sun Oct 12 06:07:44 PDT 2025

Total time taken to generate the page: 0.64058 seconds