![]() |
|
#1
|
|||
|
|||
Read HTML FileHi is there anyway to read a html file using c program.
Thank you, |
|
#2
|
|||
|
|||
Re: Read HTML FileYes, html files are text files and most tutorials in C includes a section on reading such files.
But my guess is that you should refrain your question a bit to get the answer you want.. |
|
#3
|
|||
|
|||
Re: Read HTML Filethank you for your quick reply can you give me a simple source code to do the thing.
Here is my html file "test.html" HTML Code:
and i want to read all tags by using c program Thank you Last edited by admin : 13-Sep-2007 at 11:30.
Reason: Please insert your markup between [html] & [/html] tags
|
|
#4
|
|||
|
|||
Re: Read HTML Filewell with html it is rather simple since tags are clearly delimited from the rest by <> so depending on what you want to do you can count pairs to know how many tags are present or make a list of which tags appear etc...
Open the file and process char by char, compare and sort. Max |
|
#5
|
|||
|
|||
Re: Read HTML FileQuote:
If you read through the entire file, you will have read all of the tags in the file with the C program! ...it is only WHAT you want to do with the tags after/during reading them that matters! Let's say that you want to print out all of the tags: CPP / C++ / C Code:
Output: Code:
...might get you started. :davis: |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 08:44 |
| How to detect end of file with read() function call? | nkhambal | C Programming Language | 6 | 12-Oct-2004 02:08 |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 11:53 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 12:28 |
| Binary file: hitting eof too soon? | Alotau | C++ Forum | 20 | 18-May-2004 16:36 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The