Results 1 to 3 of 3

Thread: Creating an HTML doc on the fly

  1. #1

    Thread Starter
    Hyperactive Member Rocketdawg's Avatar
    Join Date
    Feb 2003
    Location
    Back in the doghouse
    Posts
    294

    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

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    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!

  3. #3

    Thread Starter
    Hyperactive Member Rocketdawg's Avatar
    Join Date
    Feb 2003
    Location
    Back in the doghouse
    Posts
    294

    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
  •  



Click Here to Expand Forum to Full Width