bsturk
asked on
Saving or using CStdioFile* returned by OpenURL
I'm kinda new to this and I am trying to use OpenURL to get
an FTP file. I have the binary flag set and the member variable for the CStdioFile is the file on the remote Ftp server...How can I save this to disk? I guess this is a generic CStdioFile question.
an FTP file. I have the binary flag set and the member variable for the CStdioFile is the file on the remote Ftp server...How can I save this to disk? I guess this is a generic CStdioFile question.
If you have a CStdioFile*, you can always use CStdioFile::Read() to read from the "file". Then once you have the string, you can do anything you want with it, such as save it to disk, etc.
ASKER
I've since figured out the Read() thing and am using a progress control while I read. But how do I save that dang thing? If it's a compressed file how can I detect the eof? Do I have to use c run-time stuff like FILE?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.