Good day, I am a freshmen student in need of some help. I have created an ATM program. This program has text files created for the withdraw transaction, deposit etc. It is like a database program for me. First of all, I would like to know how to compare strings and search within the text file the account number of a person. For example, I registered in the ATM account with my name. Afterwards, it will show my account ID like 1478 which will I could use for the next login purposes. I am wondering how could I make the program recognize the name of the user or the ID. Another thing that this user database or the user text files append or just adds the new ID or the new name registered.
After the transactions have been made, the program should print-out like a receipt what the user has done. For example,
Date of Transaction : 03/24/10
MyName :
Initial balance : 20000
Deposited : 2000.00
Deposited : 1000.00
Withdrawed : 500.00
Withdrawed : 1500.00
Current Balance : 21000.00
Like this one in a hardcopy. The recorded transactions will be appended again to show what transactions the user have done. I am welcome for any program buiding. I am using C-Free, mingW 5.0 compiler. Thanks alot.