I need some help to make a program to handle CSV-files. (Comma Separated Value).
I have an input file with data like this KGGN.TXT: 19970130,13.05,13.38,13.00,13.05,1950160,0 19970131,12.77,13.15,12.76,12.77,3083100,0 19970203,12.77,13.15,12.74,12.77,2114604,0 19970204,12.88,12.96,12.81,12.88,1895578,0 19970205,13.05,13.17,12.92,13.05,1785548,0 …1000 lines (records)
The program has to read this data, make a calculation (like multiplying) of the pricedata, and write the entire line, with the recalculated pricedate back to another file like KGGNmod.TXT.
I looked at the internet, but I couldn’t find any example. Can somebody help me with this? Any suggestion is welcome.
Thanks, Hans
|