having some trouble getting the python ftp code to work. trying to retrieve a file and getting an error on this line:
s=ftp.retrbinary(‘RETR Test.txt’, open(‘C:\Documents and Settings\cannin\Desktop\Test.txt’,‘wb’).write)
In my app I need to:
#1 edit a text file - write a part number into the text file that is on another drive
#2 trasfer a program file from the HMI computer to the other drive
#3 save the file from the other drive back to the HMI computer
#4 delete the file from the other drive
Can anyone help me with python ftp code examples for these 4 scenarios?
Thank you very much.