Hello,
I have a complete sample solution with a BankAccount class with the following functionality
1. Captures first name, last name, AccountBalance and account number
2. Has a constructor that initializes the the members i.e.
public BankAccount(string firstName, string lastName, string acNumber, decimal acBalance)
3. Has a withDraw() method and Deposit() methods.
4. Overrides the ToString() method to give you the full details of the account
5. It saves to an xml file which is easier to serialize and de-serialize, but can be converted to work with text
files
( I can write a function to read/write to a text file like you specified)
6. A user interface that allows you to list account details by Debits, credit and zero balance types
7. Optionally lists all the accounts
8. Enables you to search an account by AccountNumber and perfom deposits or withdrawals on the account