File transfer

BlitzPlus Forums/BlitzPlus Programming/File transfer

Sonari Eclipsi Onimari(Posted 2006) [#1]
I need a loop that can send a 1 mb file to another computer in under 2-5 seconds? Readint takes 1.3 minutes for 1 mb. Ideas? Readstring is great, but causes an error. Readint is flawless, but it takes forever and I'm not about to mention readbyte...

-Daswebmastri


Phil Newton(Posted 2006) [#2]
If you know how big the file is, I think you can use ReadBytes which should be quicker. You could use it to read chunks inside the loop instead of ReadByte.