Inf0Byt3 wrote:Thanks for the tip, but i cannot show the progress at all, because I don't know how many bytes I've written to the file. If I use writebyte() method, it's very slow. If I use WriteData() i don't know how many bytes were written

.
Use WriteData() in 100 chunks.
For example, if you want to write 100 bytes, you execute WriteData() 100 times, writing one byte each time and updating the progress bar in between.
If you want to write 100 000 bytes you execute WriteData() 100 times, writing (100 000 / 100 =) 1000 bytes each time, updating the progress bar in between.
If you want to write 10 000 000 you execute WriteData() 100 times, writing (10 000 000 / 100 =) 100 000 bytes each time, updating the progress bar in between.
Dare2 wrote:Just curious, how do you use WriteData without the length parameter?
You can't, it's mandatory.