Jump to content
  • Advertisement
Sign in to follow this  
swatward

Creating a large Dummy file.

This topic is 4397 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well basicallly, I was wondering the best way of creating a large dummy file, from 1 gig and larger. The only way i can think of doing it is through a loop which echos a series of characters to a file. I want to be able to see speed with hard drives and web servers, Like dl and upload rate. If you have any other ways than waiting for a text document to get large, which takes forever, let me know. Thanks, Swatward

Share this post


Link to post
Share on other sites
Advertisement
I'd check the parameters, but something like:

dd -if=/dev/random -of=testfile -bs=1GB


should work nicely on unixlikes.

Share this post


Link to post
Share on other sites
If you're using Windows, you can create the file then use SetEndOfFile() to make a 1GB file. If you want to actually write stuff to that file, it's a different matter though.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!