Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (10 sloc) 202 Bytes
#!/usr/bin/python2.5
import collections
import os
count = 1
size = 573741824 # 1gb
fname = "test.data"
fh = open(fname, 'w')
while os.path.getsize(fname) < size:
count += 1
fh.write("%d\n"%count)