See below example and made changes in that as per your requirement:-
this is just idea how you can do that
#include<iostream>
#include<cstdio>
#include<fstream>
#include<string>
int main ()
{
ifstream file("vowels.txt");
char cstr[80];
while (!file.eof())
{
file.getline(cstr,80);
for(int i = 0; i < cstr.length(); i++)
{
if(cstr[i] == 'a' || cstr[i] == 'e' || cstr[i] == 'i' || cstr[i] == 'o' || cstr[i] ='u')
{
cstr[i] = '';
}
else
{
text[i]= putchar(toUpper(text[i]));
}
}
}
system("pause");
return 0;
}