User April ( posted:

I have to Read and write a specific line from a file.
Ex of the records are: the first field is for identification of a state,
and I need to read and write basing upon the State for which I need to
generate some policies. The second field is an integer of range # to
######. Firstly I need to read the file to get the start number for the
State for which I want to generate Policy and finally I need to write the
end number to the same file.

AZ: 12
CO: 100
ID: 158
IL: 198700

Can anyone of you help me?