We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9408db3 commit 9a859a2Copy full SHA for 9a859a2
abc.txt
@@ -0,0 +1,27 @@
1
+int main()
2
+{
3
+ FILE *ft;
4
+ char ch;
5
+ ft=fopen("abc.txt","r+");
6
+ if(ft==NULL)
7
+ {
8
+ printf("can not open target file\n");
9
+ exit(1);
10
+ }
11
+ while(1)
12
13
+ ch=fgetc(ft);
14
+ if(ch==EOF)
15
16
+ printf("done");
17
+ break;
18
19
+ if(ch=='i')
20
21
+ fputc('a',ft);
22
23
24
+ fclose(ft);
25
+ return 0;
26
+}
27
+As one can see that I want
0 commit comments