Thread: Using fstream to edit a html file

  1. #1
    Registered User
    Join Date
    Oct 2001

    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
    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.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

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, 07: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, 01:04 PM
  4. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM