Like Tree1Likes
  • 1 Post By Stoned_Coder

Using fstream to edit a html file

This is a discussion on Using fstream to edit a html file within the Game Programming forums, part of the General Programming Boards category; Well, my first question is if you can ifstream a html file. My second question is if you can, using ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    1

    Using fstream to edit a html file

    Well, my first question is if you can ifstream a html file. My second question is if you can, using the apstring header, fill a text file with one string. And thirdly, can any of this be simply done?

    If you're curious as to why I want to do this, I am planning to create a program that edits html files by making all the text within the < and > signs lowercase.

    Thank you for taking the time to read this... Peace.

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Yes this can all be easily done using fstream. HTML files are only .txt files with a different extension. They can be read and edited just like any other text-files.
    Data trap likes this.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. edit txt file help
    By pczafer in forum C++ Programming
    Replies: 4
    Last Post: 04-20-2009, 08:49 AM
  2. File Writing Problem
    By polskash in forum C Programming
    Replies: 3
    Last Post: 02-13-2009, 10:47 AM
  3. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 02:04 PM
  4. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 04:39 AM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 05:10 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21