Reading data from the buffer

Alrighty,
I may have asked this before, but I need to know some more information. So let's say that I have a bank program, which writes the data stored in the Client's account to a file, which looks something like this:
1
2
3
4
Name:Steve
Age:479
Account Type:Savings
Balance:100

What I'm having trouble with is editing this file. Once I have loaded the file into memory, I need to put the Name of the person, the age, and their balance into variables. Then I need to add interest rate to the balance, and finally replace the file with an updated one. The only change that will take place is the Balance, which will now have interest applied to it. I'd need the Name and Age to be put into variables so that I can re-create the file. All that I need is some way of putting the data in the file that comes after a colon into a variable. Does anyone know how I might go about doing this?
Topic archived. No new replies allowed.