Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = open(raw_input('Filename? : '),'r')
- instances = 0
- for line in file:
- if "DDS |" in line:
- instances += 1
- print "There are " + str(instances) + " DDS files in this file."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement