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
Post a Comment