This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# define the function to split the file into smaller chunks | |
def splitFile(inputFile,chunkSize): | |
#read the contents of the file | |
f = open(inputFile, 'rb') | |
data = f.read() | |
f.close() | |
# get the length of data, ie size of the input file in bytes | |
bytes = len(data) |