I want to FTP a file, and I am using the FileInfo class for certain things.
Would it be possible to create an in-memory file and initialize FileInfo with it?
How could I then write the file to disk if I wanted to afterwards?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t believe so. FileInfo’s constructor will only expect a path, not a stream. I think your going to want to use the StreamReader class…