Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def createFile(gbCount):
- with open("large_file", "wb") as f:
- oneGB = 1073741824
- size = oneGB * gbCount
- f.seek(size - 1)
- output = b'\0'
- f.write(output)
- size = int(input("Size in GB: "))
- createFile(size)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement