If this is possible then any help would be great
I have already tried this code,
float deposit (float balance)
{
double amount;
system("cls");
cout<<"Enter the amount you wish to deposit"<<endl;
cin>>amount;
ofstream newBalance;
newBalance.open ("deposit.txt", fstream::app);
newBalance<<amount;
newBalance.close();
balance = balance + amount;
writeBalance(balance);
return balance;
}
//This is a function to allow the user to increase their balance