how to read values from csv file and append incremental number to the first column and write it

how to read values from csv file and append incremental number to the first ID column and write it to a new CSV file using C techniques in load runner

 

my sample data is

ID|name|country|city|location
12345|Anthony|india|bangalore|Africa
12589|Thomas|India|chittor|rAmerica
48785|luke|london|malaysia|goa
58967|richard|singapore|hawai|dehradun
12584|mike|US|houston|bay

new file:

ID|name|country|city|location
01_12345|Anthony|india|bangalore|Africa
02_12589|Thomas|India|chittor|rAmerica
03_48785|luke|london|malaysia|goa
04_58967|richard|singapore|hawai|dehradun
05_12584|mike|US|houston|bay