Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def extractValues(fileLocation, outLocation):
- inFile = open(fileLocation, 'r')
- outFile = open(outLocation, 'w')
- for line in inFile:
- frame = ""
- size = ""
- currentIndex = line.find("Frame= ")
- c = ""
- while c is not 'Q':
- c = line[currentIndex]
- if c in "0123456789":
- frame += c
- currentIndex += 1
- index1 = line.find("size=") + 5
- size = line[index1:]
- outFile.write("Frame: " + frame + " Size: " + size)
- outFile.write("\n")
- inFile.close()
- outFile.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement