0
How to import a csv into Payroll system
I am a newby in the programming world an i have started with a pet project which is a payroll system using c# and Window Forms. I already created the GUI but i need advise on how to build a function where I can import a csv file that contains data of the Employees data
1 Antwort
+ 1
var lines =
File.ReadLines("YourFilePath")
.Select(current => current.Split(';'));
var CSV =
from line in Lines
select (line.Split(',')).ToArray();
Resource:
http://stackoverflow.com/questions/35437313/read-a-csv-file-in-c-sharp-efficiently