31
Technical forum / Re: How exactly does Copy File work?
« on: August 15, 2010, 05:16:44 AM »
Hi meta, thanks for the pointer. It looks good in your post but the condition for the loop doesn't seem to work with WME (it crashes). I first tried it as is as except I added a Sleep to the end of the loop.
After that I also tried some other variants of the loop I could think of but it didn't really work. At one point I got it as far as copying bytes to the target file but it wouldn't stop and repeat itself even though I specified that it should stop when file1.ReadByte() returns null. I'd post the code but I can't access it right now, I probably do that later.
Anyway just wanted to let you know about the result. Thanks everyone so far for the great help with this
After that I also tried some other variants of the loop I could think of but it didn't really work. At one point I got it as far as copying bytes to the target file but it wouldn't stop and repeat itself even though I specified that it should stop when file1.ReadByte() returns null. I'd post the code but I can't access it right now, I probably do that later.
Anyway just wanted to let you know about the result. Thanks everyone so far for the great help with this