#include"script.h" // on the assumtion that file: example.txt exist in program directory int main() { GetStringFF f( "example.txt" ); Str word; while( f( word, " ,.\n\t" ) ) printf( "%s\n", word.c_str() ); // print one word per line from example.txt }