Hi Maxx,
What about this?:
x=indgen(10)
y = x*x
openw, lun, 'test.dat', /get_lun
for i=0,9 do begin
printf, lun, x[i], y[i], format='(i4, i4)'
endfor
free_lun, lun
openw, 1, 'test.dat', /append
for i=0,9 do begin
printf, 1, x[i]+10, y[i]*2, format='(i4, i4)'
endfor
close,1
I think this is what you are looking for. Cheers.
Fernando
|