A Sample Program
- Use a random access file to store a set of bank accounts
- Program lets you pick an account and deposit money into it
- To manipulate a data set in a file, pay special attention to data formatting
- Suppose we store the data as text
Say account 1001 has a balance of $900, and account 1015 has a balance of 0
We want to deposit $100 into account 1001
If we now simply write out the new value, the result is
