A Blog to learn Software Technologies like C, Golang and Java
#include <stdio.h> #include <unistd.h> int main(void) { if( access("/home/pc/test.txt", F_OK) != 0 ) printf("File not available\n"); else printf("File available\n"); return 0; }