Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- using namespace std;
- int main()
- {
- ofstream MyFile("filename.html");
- MyFile << "<!DOCTYPE html><html><body><h1 style=color:blue;>A Blue Heading</h1><p style=color:red;>A red paragraph.</p></body></html>";
- MyFile.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment