I looked up fread and fgets and it shows me how to read and display all the contents of the file. However, what I really need to do is make a script that reads through a file, looks for certain tags, and pulls out the information following those tags. For example:
<Author>John Doe
<Title>My HTML document
<Time>360 Minutes
So what I'd like to do is make a script that parses the file and finds Author, it then pulls out John Doe and places that value into a variable. Ditto for the rest of the tags.
Any advice?