C program to print files in current directory in reverse order

The scandir() function scans the directory dirp, calling filter() on each directory entry. Entries for which filter() … Read more

C program to delete a file – remove API

In this simple C program, we demonstrate how to use Remove System call from C to delete … Read more

Check if a File Exists in C

If we want to see whether certain file exists or not before doing some operation like read/write … Read more

Debugging using C macros __FILE__ and __func__ and __LINE__

Following program shows a sample example of how we can use C macros __FILE__ , __func__ and … Read more