7 lines
241 B
Python
7 lines
241 B
Python
|
with open("disk.raw", "wb+") as f:
|
||
|
size = int(4194304 / 4)
|
||
|
print("creating disk of size " + str(size * 4) + " bytes")
|
||
|
for i in range(size):
|
||
|
print(f"\r{i*4}/{size*4}", end="")
|
||
|
f.write(b"\0" * 4)
|
||
|
print("\ndone")
|