Write a program using fgetc() function.
_________________________________
Answers
Answered by
1
Answer:
The fgetc() function returns a single character from the file.
...
Example:
#include<stdio. h>
#include<conio. h>
void main(){
FILE *fp;
char c;
clrscr();
fp=fopen("myfile. txt","r");
while((c=fgetc(fp))! =EOF){
Answered by
3
Answer:
The fputc() function converts c to an unsigned char and then writes c to the output stream at the current position and advances the file position appropriately. If the stream is opened with one of the append modes, the character is appended to the end of the stream.
Explanation:
I hope its help to you ✌❤
Similar questions