Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving relatively large files from system to system

Status
Not open for further replies.

flnMichael

Programmer
Nov 13, 2003
96
US
Hey,
I need to transfer files from one system to another, but link won't work when you're going from system to system so I have to open the file, read it into a buffer, then write it to the other system, then go back and delete the original file. The problem is that the file size may reach up to 20-30 MB and to create a buffer that size in my program would probably be dangerous. Is there any easier way to do this?

Thanks
Mike
 
Is there some reason why you are not using ftp,scp,
or something with a pre-existing api? It sounds like
you are wanting to do something the hard way.

I don't even understand how you think copying
the entire file contents into memory is going
to facilitate network communication. It's not
even going to begin to make a difference.
Think about the actual mtu, protocol type, etc..
Maybe I don't understand you..I kind of hope I'm
missing something.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top