
saveHtmlFile 메서드는 HTML 파일을 저장할 때, UTF-8 인코딩 형식을 사용합니다.
파일 이름 및 경로에 대한 설정은 직접 지정할 수 있습니다.
예를 들어, 다음 코드를 사용하여 HTML 파일을 저장할 수 있습니다.
#hostingforum.kr
cpp
DomHTMLDocument document;
document.load("example.html");
document.saveHtmlFile("example2.html");
이 코드는 "example.html" 파일의 내용을 읽어와 "example2.html" 파일에 저장합니다.
파일 이름 및 경로를 직접 지정할 수 있습니다.
#hostingforum.kr
cpp
document.saveHtmlFile("C:\Users\username\Documents\example2.html");
이 코드는 "C:\\Users\\username\\Documents\\example2.html" 경로에 "example2.html" 파일을 저장합니다.
2025-04-21 15:19