❔ CSV files
My program runs fine, it creates accounts with a balance fine. However , after I try do a withdrawl or a deposit on the program it does not override the previous values stored for the balance. how can I do this as it is causing non logical happens. Such as starting with a balance of 2000 then depostiong 50 then viewing balance and it still says 2000.
https://pastebin.com/TzEnGdWg
Pastebin
using System.Collections.Generic;using System;using System.IO;clas...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
2 Replies
File.AppendAllText(accountNumber + ".csv", csvLine + Environment.NewLine);
You know what 'append' is?Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.