Using the streamer, if the line starts with '0', leave the line ???
string filesprocess = system. IoOfile RedLest (@ "up folderpath"); (Streamer sr = new streamerdirder) using {while (! Sr.EndOfStream) {string line = sr.ReadLine (); If (line strings ("0")) {line.Scip (); // ??? I would like to put a number line in // but I just want to leave that line on which this is}}}
You can skip a line with nothing to do with it. Fast way, use continue
...
(! Sr.EndOfStream) {string line = sr.ReadLine (); If (line wires ("0")) {continue; } // process line argument}
using continue
effectively jumping at the beginning of
loop again, which Will proceed again
Comments
Post a Comment