C Program to open and write a text file.
  C Program to  open and write a text file.   #include <stdio.h> #include <conio.h>    void  main() {    FILE *fptr;  if (fp = fopen("Resume.txt", "wb")) {  printf("File opened successfully and write in binary mode .");    }    else    printf("Error!");    fclose(fptr);    getch();