How to replace real value to character


rrevathy25
07-07-2009, 06:04 AM
I have a file which contains data as given below
SSR 1175 7 37.5000N 15 0.00 0.00 0.00 7.10 0.00 0.00 10
RAO 1341 8 12.0000N 10 0.00 5.70 0.00 0.00 0.00 0.00 7
RAO 1341 7 12.0000N 10 0.00 0.00 0.00 5.70 0.00 0.00 7
SIG 1390 8 39.8000N 20 0.00 0.00 0.00 0.00 0.00 6.10 8
Here how to replace 0.00 with 4 spaces.0.00 is a real value.
for example i am reading the above data using fortran & its in the same format as shown above.
Now i want the above data too be read as
SSR 1175 7 0.00 37.5000N 15 7.10 10
RAO 1341 8 9.10 12.0000N 10 5.70 7
RAO 1341 7 0.00 12.0000N 10 5.70 7
SIG 1390 8 9.80 19.8000N 20 6.10 8
Here all the 0.00 is removed for last 6 column & replaced by blank space..so how to get this format.can anyone tell me