This commit is contained in:
Emmanuel Srivastava
2024-12-08 23:45:04 +01:00
parent ce726a40b3
commit 642ed7f857
18 changed files with 337 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#include <stdio.h>
#include <stdlib.h>
/*fputs(<chaîne de caractère>, <fichier>) : écrit une chaîne de caractère*/
int main(void){
FILE *fic = fopen("text.txt", "w");
char mot[]="Bonjour";
if(fic==NULL)
{exit(1);}
fputs(mot,fic);
fclose(fic);
}