#include <stdio.h>
#include <stdlib.h>
#include<conio.h>
void main(){
   char ch;
   int count=0;
   FILE *fp;
   clrscr();
   fp = fopen("xyz.txt","r"); // read mode
   if( fp == NULL )
   {
      printf("Error while opening the file.\n");
      getch();
      exit(0);
   }
   while( 1 ){
     ch = fgetc(fp);
     if(ch == EOF){
           break;
     }
      if(ch=='a' || ch=='A' || ch=='e' || ch=='E' || ch=='i' || ch=='I' || ch=='o' || ch=='O' || ch=='u' || ch=='U'){
           count++;
      }
   }
   printf(“\nNumber of vowels in file : %d”,count);
   fclose(fp);
   getch();
}



C Program to Write a Sentence to a File
Count number of vowels in file
Count number of character in file
Read contents from file ( Character by character )
String copy without using String function
String copy using String function
Read String from the terminal
Find largest number in 1-D array
C Program to Print the Alternate Elements in an Array
Print following series : 1+x2/2! + x3/3! + x4/4! + x5/5!