Answers for "fputs"

0

fputs

#include <stdio.h>

int main () {
   FILE *fp;

   fp = fopen("file.txt", "w+");

   fputs("This is c programming.", fp);
   fputs("This is a system programming language.", fp);

   fclose(fp);
   
   return(0);
}
Posted by: Guest on July-11-2020
0

fputs in c

#include <stdio.h>

int main () {
   FILE *fp;
   int c;

   fp = fopen("file.txt","r");
   while(1) {
      c = fgetc(fp);
      if( feof(fp) ) {
         break ;
      }
      printf("%c", c);
   }
   fclose(fp);
   return(0);
}
Posted by: Guest on July-11-2020
0

fputs c++

int fputs(const char* str, FILE* stream);
Posted by: Guest on January-14-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language