Main Page | Compound List | Compound Members | Examples

bufferfile.cxx

This is an example of how to use TPT::Buffer with a file.
// Example usage of TPT::Buffer class.

#include "mylex.h"

#include "tpt/buffer.h"

int main()
{
    TPT::Buffer inbuf("myfile.txt");
    char c;

    while (inbuf)
    {
        c = inbuf.getnextchar();
        lex(c);
    }

    return 0;
}

Generated on Sat Feb 7 16:06:07 2004 for LibTPT by doxygen 1.3.3