WvStreams
wvfileex.cc
1/*
2 * A WvFile example.
3 *
4 * Some text about this example...
5 */
6
7#include <wvfile.h>
8
9int main()
10{
11 WvFile infile("/etc/passwd", O_RDONLY);
12 char *s;
13
14 while (infile.isok() && (s = infile.blocking_getline(-1)) != NULL)
15 wvcon->print("%s\n", s);
16}
WvFile implements a stream connected to a file or Unix device.
Definition: wvfile.h:29