Hi everyone,
OK. I am trying to figure out the fastest way to read an HTML file (any file that the user specifies--this will be dynamic and could be on the hard drive or on a remote server). Next parse the file to separate the words contained within the different sections into their own logical groups (the meta tags, the body, the comments, the alt text, etc.). Finally ignore the HTML tags that are left, count the words from each section, and simply write another HTML file that has the % results listed in a convenient table.
Most of this is not hard at all. Writing the HTML is a breeze. Displaying the written HTML file within the internal web gadget is simple. The trouble is that I cannot yet find a FAST and reliable way to parse the file and count the words.
A friend of mine suggested adding the words to a database. This is fine, but I don't like the idea of having such dependencies for the application. A quick, tiny, no-nonsense app is the best solution.
What can you think of to do this within PureBasic alone?
Any help you can give me will be greatly appreciated.
Take care.
- Art Sentinel
http://www.artsentinel.net
.
.
.
By the way, HAPPY HALLOWEEN!
.
"Resistance is futile! Surrender your treats or be assimilated!"
--------------
Top Ten Reasons Not To Procrastinate:
Coming Soon...
