This repository has been archived on 2025-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-09-20 14:17:13 +03:00

16 lines
284 B
C

#include <stdio.h>
#include <stdlib.h>
int main(void) {
char line[50];
FILE *fptr;
if ((fptr = fopen("noFile.txt", "r")) == NULL){ // File does not exist
perror("Failed to open file, terminating");
exit(0);
}
fclose(fptr);
return(0);
}