Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. file = open(raw_input('Filename? : '),'r')
  2. instances = 0
  3. for line in file:
  4. if "DDS |" in line:
  5. instances += 1
  6. print "There are " + str(instances) + " DDS files in this file."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement