Suppose, for example, I had the following contents in a text file:
If I were to have the program scan through the contents of a text file, line for line, and do a tally on all the lines of code below the [regular] (not including the [regular] line) up to but not including the [out] line, and then skip the 2 lines and do a new tally for any lines after the line starting with the "###" - how would I do it?
Code:
[regular]
airplane
bigbuck
bill
bowler
boxer
countryduet
cannonball
car
doowop
exercise
fang2
jackhammer
jaws
magician
matador
picnic2
rollerskating
skateboard
tnt
windowwasher
[out]
###The Following is a list of Whammy-Out Animations
barbershop
cruiseship