How can i read an write to a HTML or xml file using C
I have a data strcuture containing the follwoing elements
struct my_data
{
int no;
char *input ;
char *output;
char * descritpiton;
char *time;
};
now i want to write the structure elements to a HTML or xml file in a tabular form as an output of my program at the same time i want read some of the output as input to my program for example say i want pick up the value from the html file where time is just before the current time.
FORMAT FOR HTML FILE is given BELOW
/*******html file starts here *************/
" This is MY Program Output genrated on "current date and time"
Number Input output Description time
/********** html file end here **********/
every time i run the code new values of the structure elemnts will be appneded to the exisitng html file or depening upon the some conditions a new html file is generated and values ar added to new file .
iam totaly new to html or xml but i know C
|