Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 13 lines (10 sloc) 0.202 kb
1 2 3 4 5 6 7 8 9 10 11 12
#!/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)
Something went wrong with that request. Please try again.