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

22nd Feb 2017, 9:18 AM
Jeffery S J Philander
Jeffery S J Philander - avatar
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
23rd Feb 2017, 10:01 PM
Seyed Arman Fatemi
Seyed Arman Fatemi - avatar