from sys import argv
file = argv[1]
input = ""
inputData = open(file)
#Function for reading chuncks
def readChuncks():
return inputData.read(1024)
#Iterate through the file
for data in iter(readChuncks, ''):
input += data #process the data
inputData.close()
Any thoughts/comments/suggestions would be greatly appreciated :-)
No comments:
Post a Comment