Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

save a sdi html document?

Status
Not open for further replies.

troy44

Programmer
Apr 22, 2002
3
FR
hi,
i make a sdi application who read htlm page. i just want to save the html page in a file ".txt" but i don't know how!
can you help me?

ps: i m french, sorry for the mystakes.
 
If You derive Your View from CEditView, You will have all features for work with text. To read from or save in a text file, You can use SerializeRaw( CArchive& ar ) member - function (it should be in Serialize() - function of Your CDocument - derived class).
To right work with File extensions, You can override OnFileOpen() - function of CDocManager (make Your own class, for example CMyDocManager, and replace old CDocManager with it).

 
my problem is that i want to get file on the web and to save it on my disk.
so i use a ChtmlView, and the save function isn't write.
i don't know where to get the string who represent the html file.
can you help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top