Login Register






Create Your Own File Pumper ! filter_list
Author
Message
RE: Create Your Own File Pumper ! #11
Your welcome, i didn't make a tut though, so your epic :epic:

Reply

RE: Create Your Own File Pumper ! #12
(07-10-2011, 10:45 PM)Nathan Wrote: Your welcome, i didn't make a tut though, so your epic :epic:

<3 Biggrin
[Image: Raiden_Signature_by_KiraReFLeX.jpg]

Reply

RE: Create Your Own File Pumper ! #13
Thanks for sharing this.
<3

Reply

RE: Create Your Own File Pumper ! #14
Thanks dude...good job...................................

Reply

RE: Create Your Own File Pumper ! #15
Thanks man! Very nice share.
[Image: backspacez1.png]

Reply

RE: Create Your Own File Pumper ! #16
Interesting, but why won't you let the system handle the writing of large amounts of bytes, instead of writing each one of them, byte by byte in your program?

If you replace
Code:
Dim filetopump = IO.File.OpenWrite(sfd.FileName) Dim size = filetopump.Seek(0, IO.SeekOrigin.[End]) While size < filesize filetopump.WriteByte(0) size += 1 End While filetopump.Close()

With
Code:
Dim filetopump = IO.File.OpenWrite(sfd.FileName) filetopump.Position = filesize-1 filetopump.WriteByte(0) filetopump.Close()

The code will be simpler (no loop needed) and it will also get the same job done A LOT faster, because the system handles writing all the zero bytes in more optimized manner instead of your code having do the same thing "manually".
I love creativity and creating, I love science and rational thought, I am an open atheist and avid self-learner.

Reply