I'm trying to write an HTML preprocessor. What is the best way to go about this? Should I read the entire file into a character array first, and then process that? Should I read it into an array of strings instead?
Basically I have an HTML file, like the one below.
When I run the preprocessor on the above HTML code, the line that reads "#insert HelloWorld.html" is replaced by the contents of the file "HelloWorld.html."Code:<html> <title></title> <body> <h1>This is an HTML file.</h1> #insert HelloWorld.html </body> </html>



LinkBack URL
About LinkBacks



CornedBee