getting an error while trying to read a csv file in c# -


this code , code seems exiting without printing onto console:

string s_item = "error 500";  var lines = file.readlines("c:/users/lenovo/desktop/probablisitic automata/data/april/april_steady_state.csv");  foreach (string line in lines) {     if (line.contains(s_item))     {         console.writeline(line);     }  } 

i following error :

'read_april_csv.vshost.exe' (clr v4.0.30319: read_april_csv.vshost.exe): loaded 'c:\users\lenovo\documents\visual studio 2015\projects\read_april_csv\read_april_csv\bin\debug\read_april_csv.exe'. symbols loaded. thread 0x2878 has exited code 0 (0x0). thread 0x3ed8 has exited code 0 (0x0). program '[13288] read_april_csv.vshost.exe' has exited code 0 (0x0).


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -