Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char* argv[])
  4. {
  5. if (argc < 2)
  6. return 1;
  7.  
  8. FILE *pFile = fopen(argv[1], "rb");
  9.  
  10. if (!pFile){
  11. printf("Can`t open file\n");
  12. return 1;
  13. }
  14.  
  15.  
  16. fclose(pFile);
  17. printf("End operations...\n");
  18.  
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement