Question: Please use C for solving this question. Thanks The program inputs and analyses an HTML file and prints of the list of the HTML tags
Please use C for solving this question. Thanks
The program inputs and analyses an HTML file and prints of the list of the HTML tags names together with the number of occurrences of each tag. The utility program htags2 should read the HTML file specified as the command line parameter.
The new version should read the entire HTML file into a character array, called here the input array. This input array is the only data structure for storing text, i.e. strings of characters, in your new program. The new implementation must not store the HTML tags directly in a separate data structure (array). Instead, htags2 should use pointers stored in the index table, pointing to the first occurrence of each tag identified in the input array. A separate (parallel) array of integers should then be used to keep track of the number of occurrences of each identified tag type. Here are the new requirements for the implementation of htags2:
Read the file specified as the command line parameter and output the count for each HTML tag detected.
Your program must consist of at least TWO programming modules, with at least one of them compiled and tested separately.
The new version of the htags2 program is to be implemented using pointers ONLY to access array elements. The square brackets [ and ] can be used to specify the array dimensions ONLY. In all other cases you must use pointers.
Only one char array, the input array, can be used to store the text from the entire input HTML file.
You are not allowed to store the detected tags in a char array: you must use the index table to store pointers to the tags detected in the input char array.
Assume the input file contains less than 100000 characters.
Assume there are less than 100 different tag types in the HTML file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
