G
Guest
Hello !
With c# , I want to create a HTML file programatically .
How can I do it ?
Thank U !
With c# , I want to create a HTML file programatically .
How can I do it ?
Thank U !
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Eliyahu Goldin said:Nir,
See if you need anything else apart from the following operations:
Open a file:
StreamWriter sw = new StreamWriter("TestFile.txt");
Write your html there:
sw.Write ("<span style='color:red'>Error</span>");
Close the stream:
sw.Close();
Eliyahu
Niron kag said:Can't I write the file to general directory like c:\ ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.