c# - skip lines that contain semi-colon in text file -


How can I exclude lines in a text file, which is the semi-colon at the beginning of a line? I am currently reading a text file with a server name that works fine if a server is going in maintenance mode, I want to throw a semi-colon at the beginning of a line to comment on it.

  var rows = file. Read Line (Path); Foreign (different lines in line) {if (line strings (";")) {continue; } And {// your stuff}}    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -