51
50
# print outputfile, inputfile, recordsize, maxphases, memsize
64
65
# constructSublist("input.txt", "output.txt", 2)
65
66
def constructSublist(inputfile, outputfile, rwbuffer):
67
68
freader = open(inputfile, 'r', False) # I/O is unbuffered. All read/write go directly to disk
70
71
unsortedString= freader.readline()
76
72
for i in range(rwbuffer-1):
77
73
unsortedString += freader.readline()