I want to get content for each file situated on FTP. I’m going to develop it for with FTPWebRequet in C# Windows Application. But I’m searching for best and correct way for doing it.
For example I am looking for a file as
tmpReq = (FtpWebRequest)FtpWebRequest.Create("ftp://" + Settings.Default.IP + "/953077/Inserted/XMLComp" + CryptoHelper.Decrypt(Settings.Default.RegCode) + ".xml");
but how can I do it for multiple files
in loop i can create FtpWebRequest and change the fileName XMLComp95202. But i think it’s not the best way to do it
I’m assuming you don’t know the name of the files you want on the FTP server- correct? If not you’ll have to get a directory of files and loop over the results. Check out WebRequestMethods.FTP.”methods”