Computer Science, asked by mukesh9838, 1 year ago

list out various file operations in C. write a C program to count the number of character in file:​

Answers

Answered by Anonymous
1

Answer:

C Program to count number of characters in the file

#include<stdio.h>

#include<conio.h>

void main() {

char ch;

int count=0;

FILE *fptr;

fptr=fopen("text.txt","w");

if(fptr==NULL) {

Similar questions