I am doing a school project on making UI for an atm machine. SO my question is how can I use a variable such as 'CURRENTBALANCE' be manipulated by the information in a .txt file then needs to be saved in said .txt file.
I looked at all the lecture notes/code examples and it isn't in there.
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
double CURRENTBALANCE, DEPOSIT;
cout << "How much would you like to deposit?' << endl;
cin >> DEPOSIT;