MIX OF MANY TEXT FILE OPERATIONS (Doing this program will complete your concept of Text File Handling)
//Text File Operations #include<fstream.h> #include<string.h> #include<conio.h> #include<ctype.h> #include<...
//Text File Operations #include<fstream.h> #include<string.h> #include<conio.h> #include<ctype.h> #include<...
Write a function in C++ to count the no. of "He" or "She" words present in a text file "STORY.TXT". Sol...
Write a function in C++ to read the content of a text file "HOBBY.TXT" and display all those lines on screen, which are either st...
Write function definition for WORD4CHAR() in C++ to read the content of a text file "FUNNY.TXT", and display all those words, whi...
Write a function CountHisHer() in C++ which reads the contents of a text file "NOTES.TXT" and counts the words His and Her (not c...
#include<fstream.h> #include<stdio.h> #include<ctype.h> #include<stdlib.h> void ReadFile() { char filename[...
void main() { system("cls"); char filename[20]; system("dir/w *.txt"); cout<<"Enter the file nam...
void countVowels() { ifstream fin(“NOTES.TXT”); char ch; int count=0; while(!fin.eof()) { fin.get(ch); if (isalpha(ch)) ...
void countLines() { ifstream fin(“NOTES.TXT”); char ch[80]; int count=0; if (!fin) { cout<<”Error opening file!” ; ...
void countLower() { ifstream fin(“NOTES.TXT”); char ch; int count=0; while(!fin.eof()) { fin.get(ch); if (islower(ch)) ...
void countCapitalWord() { ifstream fin(“NOTES.TXT”); char word[25]; int count=0; while(!fin.eof()) { fin>>word; if ...
Download the File. Click here to Watch the Explanation & Developing Video