WvStreams
wvfileex.cc
00001 /*
00002  * A WvFile example.
00003  *
00004  * Some text about this example...
00005  */
00006 
00007 #include <wvfile.h>
00008 
00009 int main()
00010 {
00011     WvFile infile("/etc/passwd", O_RDONLY);
00012     char *s;
00013     
00014     while (infile.isok() && (s = infile.blocking_getline(-1)) != NULL)
00015         wvcon->print("%s\n", s);
00016 }