the scripts I posted above WORK for me - I TESTED it
the new folder matter if the server and client are in same fodler. you open a file to read from it (in the server) and you would try to open it for writing (in the client). Obviously if both scripts are in the same folder that will be not possible
server is running. then
the new folder matter if the server and client are in same fodler. you open a file to read from it (in the server) and you would try to open it for writing (in the client). Obviously if both scripts are in the same folder that will be not possible
server is running. then
Output:$ ls ./received
$ python3 client.py
enter file name ->values.json
this file exists 45bytes, download(Y/N)?Y
download complete
$ ls ./received
values.json
as you can see from ls
command ./received
is empty and then the file (some json file I have) is downloaded
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs