I need to be able to create a large \"dummy\" file (around 1 GB) quickly. I am currently looping over a byte array and appending it to the file, but this results in may sepa
You can check this answer. It says that you can lseek() past the end of file (EOF) then write something. The gap between the initial end of file and the bytes you wrote will return 0's if queried.