Reading a line from a streamreader without consuming?
问题 Is there a way to read ahead one line to test if the next line contains specific tag data? I'm dealing with a format that has a start tag but no end tag. I would like to read a line add it to a structure then test the line below to make sure it not a new "node" and if it isn't keep adding if it is close off that struct and make a new one the only solution i can think of is to have two stream readers going at the same time kinda suffling there way along lock step but that seems wastefull (if