I have writen 2 seperate progs (Client & Server) aimed a simulating an ATM.
The data is kep in a CSV file which is simple:
username,pin,balance.
Everything works fine except I dont know how to update the csv file with a new balance if the customer has made a "withdrawl".
The client receives the balance from the server after usrname and pin verifiaction and will calcuate any new balance and return in to the server. The server prog has a scrolling log window to display all traffic data (testing purposes) and the new balance comes across ok.
However, I am at a loss as to how to update the balance section of the csv file for the particular cust that is logged on.
Any help really appreciated - I need to hand this in on Friday at 4 pm !!!!!
The data is kep in a CSV file which is simple:
username,pin,balance.
Everything works fine except I dont know how to update the csv file with a new balance if the customer has made a "withdrawl".
The client receives the balance from the server after usrname and pin verifiaction and will calcuate any new balance and return in to the server. The server prog has a scrolling log window to display all traffic data (testing purposes) and the new balance comes across ok.
However, I am at a loss as to how to update the balance section of the csv file for the particular cust that is logged on.




Any help really appreciated - I need to hand this in on Friday at 4 pm !!!!!
