Re: Format query [message #45921] |
Wed, 19 October 2005 20:12 |
neon
Messages: 9 Registered: October 2005
|
Junior Member |
|
|
oh..so that means format can be only used in one line when dealing with
character and numeric data?...actually i needed to write in a file. I
use writecol.pro to make the data. Does this mean that I wont be able
to use these format codes?
|
|
|
Re: Format query [message #45935 is a reply to message #45921] |
Tue, 18 October 2005 16:37  |
Andrew Cool
Messages: 219 Registered: January 1996
|
Senior Member |
|
|
neon wrote:
> by the way, this is in IDL.
n=indgen(4)
a=['earth', 'air','fire','water']
b=['solid','gas', 'heat', 'liquid']
for i = 0,3 do begin
print,n(i),a(i),b(i),form='(i4,a7,a7)'
end
0 earth solid
1 air gas
2 fire heat
3 water liquid
|
|
|
|