#include #include #include #include #include #include #include #include using namespace std; using namespace xstream; int main(int argc, char* argv[]){ try{ int fd; if(2==argc){ fd = open(argv[1], O_RDONLY); if(-1==fd){ perror("open"); return errno; }else{ string line; fd::streambuf fs(fd,true); istream is(&fs); is.exceptions(ios::badbit); while(is.good()){ getline(is,line); cout<