on-internet
← Community

In a file, does each Begin have a matching End?

Stack Overflow ·

I have a huge file which has 1000's of lines with Begin and End. I am looking for logic which will tell me for each Begin if there is a corresponding End or not. For example: # Begin Variable Name = loopEndDriven Decl_type = UInt8 Usage = Z Value = CE_SELECT # End Variable # Begin Variable Name = locationNeeded Decl_type = Loop_Location_t Usage = Z Value = SHORT_LOCATION # End Variable

Comments

Sign in or sign up to comment and upvote.

No comments yet.