C++ - sending a modified file periodically
问题 I want to send a file periodically from client to server in C++. say, every 10 seconds. send.txt is the file that i want to send to server through socket send.txt contains "123456" for the first 10 seconds. i change the file content by adding 78910 11 12 so it becomes "123456 78910 11 12" the server should receive "123456 78910 11 12" for the next 10 seconds. but the problem is the file that i received is still the original one (123456) and look like it never changes. here is my client code :