Link to home
Start Free TrialLog in
Avatar of bsturk
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.
Avatar of Tommy Hui
Tommy Hui

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.

Avatar of bsturk

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
Avatar of TKII
TKII

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial