Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21846

Another Question About Text Files

$
0
0
Suppose, for example, I had the following contents in a text file:

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

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?

Viewing all articles
Browse latest Browse all 21846

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>