I need to know how to save a webpage using C++ on a Windows and/or Linux.
Step 1) This is my current code that opens the webpage:
ShellExecute(NULL, "open", websiteURL, NULL, NULL, SW_SHOWNORMAL);
Step 2) This is the step where I will save the webpage that is opened as a .txt
Your help here.
Step 3) This is my attempt at closing the webpage after saving it as a .txt; However, it does not work currently.
ShellExecute(NULL, "close", websiteURL, NULL, NULL, SW_SHOWNORMAL);
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…