You have to view the source of "content.html" to really appreciate what's going on in the lab - there's virtually no Web Driver code! All the code is loaded dynamically using the driver's file input methods, then executed using the JavaScript "eval" function, which evaluates a string as code. In this case, the script code is contained in the file hello.txt, but it could just as easily be drawn from a web server, which could, in turn, be serving pages from a database. The result is a scene that can be completely data driven.
The WTFile object provides only read access to files, and only files located in or below the directory containing the web page. Many datatypes are supported in addition to the simple text type used in this lab. Files load asynchronously, so your code can be doing other things while waiting for data to become available.
WT::readFile, WTFile::eof, WTFile::status, WTFile::readLine, WTFile::setOnLoad