|
-
May 4th, 2005, 07:46 AM
#1
Thread Starter
Hyperactive Member
Creating an HTML doc on the fly
Hi Everyone
I'm having a bit of trouble coming up with the right question to ask (which really hinders the search efforts) But here it goes
I'd like to open an template html file, then modify the html file and finally, save it back to a directory as an html file.
Is there part of the System.IO namespace I can use? Most of what I've seen deals with .txt files.
If anyone could point me in the right direction, I'd greatly appreciate it!
Thanks
-
May 4th, 2005, 08:31 AM
#2
Frenzied Member
Re: Creating an HTML doc on the fly
An HTML file is a text file! All you need to do is change the file extension to .html but you can deal with it in exactly the same way.
Depending what you are doing it might be useful to look into the HtmlTextWriter which might help you along with modifying the HTML file.
HTH
DJ
If I have been helpful please rate my post. If I haven't tell me!
-
May 4th, 2005, 08:44 AM
#3
Thread Starter
Hyperactive Member
Re: Creating an HTML doc on the fly
Doh! Sorry for being so thick. , but thank you for pointing out the HTMLtextwriter!
I always make things more complicated than they have to be.
Thanks again
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|