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();

Comments

Popular posts from this blog

C Program to print swap number using third variables

C Program to open and write to a text file using fprintf.