Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy file with FRead/FWrite
Message
From
09/11/2004 09:44:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00959520
Message ID:
00959533
Views:
22
>Hi.
>I have to copy large files via network. It can take time. In order to give the user more control over the copying i intend to write a copy procedure based on Fread()/Fwrite(). I've tryed a sceleton version of it on a 144mb file - no problem.
>Don't want to use window's API function for it takes a structure so ClsHeap is needed and it becomes complicated. If you have no objections to Fread()/Fwrite() i'll give it a go.
>All the best.
>Kamil

What sort of control - do you want the user to be able to interrupt while the copying is done?

I don't see any specific problems with this approach, except that it might be slower than just using COPY FILE, etc. To reduce this effect, I would suggest that you copy a relatively large piece in every iteration.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform