#include #include #include #include using namespace std; main(int argc, char **argv) { struct stat filestat; if(stat(argv[1], &filestat)) { cout <<"ERROR in stat\n"; } if(S_ISREG(filestat.st_mode)) { cout << argv[1] << " is a regular file \n"; cout << "file size = "<