1
votes

Is it possible to write a txt file on ftp (not upload a file to ftp!) Directly writing a txt file on ftp server) and read from a file on a ftp (not download a file from ftp!) Directly read from a txt file on ftp server? I searched but ı found upload a file and donwload a file with FtpWebRequest class. Note: FTP server uses credentials.

3
FTP = File Transfer Protocol :)Jester
Sure, if you run a process locally on the FTP server, but you won't be using FTP.scottm
I know ftp. Is there any protocol like File Data Transfer Protocol-FDTP :)Mehmet

3 Answers

5
votes

No, it is not possible.

The FTP protocol described in RFC 959 doesn't have any means to achieve what you want.

2
votes

No, as far as I'm aware, your only option is to download or upload the file. I guess you could short-circuit it a bit by only downloading the file until you got to the part you needed, then aborting. But the whole purpose of FTP is to upload/download FILES, not content.

0
votes

It's possible with help of third-party virtual file system driver which should be installed in system. There exist third-party applications which let you see the remote FTP location as a virtual disk on your computer. Once the remote FTP location is mounted this way you can use regular file I/O methods to read and write those files. You can create such application as well (not a rocket science with right tools).