Subscribe to Feeds

Send Your Projects To georgepj@hotmail.com

We'll Publish It With Your Name :-)

Programs Can Also Be Downloaded From The Folders Below....[Or Scroll Down]

Store Vowels from one File to another

Click Here To Download C File Of This Program

 //PROGRAM TO STORE VOWELS OF FILE STRING TO ANOTHER FILE VOWELS  
//Downloaded from www.c4cprog.co.nr
#include<stdio.h>
void main()
{
char c;
FILE *f,*f1;
f=fopen("STRING","w");
clrscr();
printf("Enter String :\n ");
while(scanf("%c",&c)!=EOF)
putw(c,f);
fclose(f);
f=fopen("STRING","r");
f1=fopen("VOWELS","w");
while((c=getw(f))!=EOF)
if((c=='a')||(c=='e')||(c=='i')||(c=='o')||(c=='u')||(c=='A')||(c=='E')||(c=='I')||(c=='O')||(c=='U'))
putw(c,f1);
fclose(f);
fclose(f1);
f1=fopen("VOWELS","r");
printf("\nVOWELS : \n");
while((c=getw(f1))!=EOF)
printf(" %c",c);
getch();
}
/*
OUTPUT
Enter String :
Program To Store The Vowels In A Paragraph To A File, Is Successfully Executed
^Z
VOWELS :
o a o o e e o e I A a a a o A i e I u e u E e u e
*/

0 comments:

Post a Comment