Jeg brugte ClosedXML reference til at export CSV data i et excel ark.
Til andre:
List<string> csvlines = new List<string>();
try { using (StreamReader sr = new StreamReader(@"C:\Users\" + username + "\\Desktop\\TimeTracking.txt")) { string currentLine; // currentLine will be null when the StreamReader reaches the end of file while ((currentLine = sr.ReadLine()) != null) {
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.