editing a specific column of a text file

Hi,
i have to create a programme(c++) for a text file having multiple columns in such a way that the numbers of only 3rd column need to be edited.the format of the text file is

1 4.3444 3000.00 abc abc abc efg
2 4.7633 3000.00 abc abc abc efg
3 4.8988 3001.00 abc abc abc efg
4 4.9999 3001.00 abc abc abc efg
5 5.0001 3001.00 abc abc abc efg
6 5.0211 3001.00 abc abc abc efg
7 5.5433 3003.00 abc abc abc efg

there is gap 0f 10 blank spaces between each column.the text file is of hundreds of lines.what we have to do is to change the repeated numbers in third column in such a manner that no number is repeated. i-e
third column could be edited to the form
3000.00
3000.50
3001.00
3001.25
3001.50
3001.75
3003.00
all the work is to be done in the single file.any suggestions?
Last edited on
Topic archived. No new replies allowed.