Sinisterly
how do i send a file from one computer to another using c++ - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: C, C++, & Obj-C (https://sinister.ly/Forum-C-C-Obj-C)
+--- Thread: how do i send a file from one computer to another using c++ (/Thread-how-do-i-send-a-file-from-one-computer-to-another-using-c)



how do i send a file from one computer to another using c++ - john334 - 03-25-2021

Hi im quite new to c++ (roughly 4 months) but I want to start on a larger project. I want to make a preogram where I can send any file I want from one computer to another without the owner of the computer to know that Im doing it. So what I'm thinking is I make a copy of the file and then send the copy to my server (and delete it on the host computer), where I can then do whatever I want with the file without them knowing. There is one small issue tho... I have no idea how to copy and send a file from one computer to another, and I have looked at a lot of online sources and they all say different things. Pls help, I am deeply confused.


RE: how do i send a file from one computer to another using c++ - Sympthey - 04-25-2021

This can easily be accomplished some a simple tcp socket, send the file in bytes format over the socket then decode the bytes on the host machine and save them to the corresponding file. (If you are sending a text file save it into a text file on the host machine)