Results 1 to 3 of 3
  1. #1
    newbieal is offline Member
    Join Date
    Oct 2008
    Posts
    19
    Rep Power
    0

    Default add information to HTML file

    I have to add text to the <head> tag of HTML documents. What is the best approach? filewriter, bufferedreader, etc? Or would this HTML Parser help with this solution (htmlparser.sourceforge.net). If yes, how could this be added to my code to make it useful?

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Default

    File writer or PrintWriter. You will have to do a file.open() then write the <html> then write the full contents of the file you wish to add to to the file the code just opened.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  3. #3
    newbieal is offline Member
    Join Date
    Oct 2008
    Posts
    19
    Rep Power
    0

    Default HTML parser

    I'm looking at using HTML Parser instead. Would this be a better solution?

Similar Threads

  1. HTMl file
    By serfster in forum New To Java
    Replies: 11
    Last Post: 02-13-2009, 05:26 AM
  2. How can I include a html file in html textarea?
    By surya_dks in forum New To Java
    Replies: 2
    Last Post: 10-04-2008, 07:20 AM
  3. Replies: 3
    Last Post: 04-07-2008, 06:02 PM
  4. how to call a JAR FILE from HTML
    By leonard in forum Java Applets
    Replies: 1
    Last Post: 08-05-2007, 06:06 AM
  5. how to get information of a file
    By leonard in forum New To Java
    Replies: 2
    Last Post: 08-01-2007, 05:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •