fopen function in c
#include<stdio.h>
#include<conio.h>
void main(){
FILE *fp;
//r means read file
fp=fopen("sam.txt","r");
fclose(fp);
getch();
}
0
0
#include <stdio.h>
#include <stdlib.h>
int main () {
FILE * fp;
fp = fopen ("file.txt", "w+");
fprintf(fp, "%s %s %s %d", "We", "are", "in", 2012);
fclose(fp);
return(0);
}
Thank you!
0
0
3.67
3
FILE *fopen(const char *filename, const char *mode)
Thank you!
3
0
Are there any code examples left?
New code examples in category C
-
C 2022-03-27 22:30:45 Problem Statement Print the following output: \ Input Format IN Output Format \
-
-
-
-
-
-
-