00001 #include <wvfile.h> 00002 00003 int main() 00004 { 00005 WvFile infile("/etc/passwd", O_RDONLY); 00006 char *s; 00007 00008 while (infile.isok() && (s = infile.getline(-1)) != NULL) 00009 wvcon->print("%s\n", s); 00010 }