| 230 | file.close(); |
| 231 | } |
| 232 | void inputUpgradeData(accounts data[]) { |
| 233 | ofstream file; |
| 234 | file.open("data.txt"); |
| 235 | for (int i = 0; i <::increaments; i++) { |
| 236 | |
| 237 | file << data[i].name; |
| 238 | file << "|"; |
| 239 | file << data[i].password; |
| 240 | file << "|"; |
| 241 | file << data[i].balance; |
| 242 | file << "|"; |
| 243 | file << data[i].borrowed; |
| 244 | file << "|"; |
| 245 | |
| 246 | } |
| 247 | |
| 248 | file.close(); |
| 249 | } |