c# - Calculate all the values in textfile -
i have make program allows admin calculate total revenues each business type. i have stored gained revenues each type in separate text files ie. .mobile.txt , .kiosk.txt , .daily.txt the content each type in text file this 10 60 30 so far code i've generated, still doesn't work private void report_load(object sender, eventargs e) { list<double> kiosk = new list<double>(); list<double> daily = new list<double>(); list<double> mobile = new list<double>(); foreach (string line in file.readalllines(@".kiosk.txt")) { kiosk.add(double.parse(line)); } foreach (string line in file.readalllines(@".mobile.txt")) { mobile.add(double.parse(line)); } foreach (string line in file.readalllines(@".daily.txt")) { daily.add(double.parse(line)); } double sum_kiosk = kios...