Data File Handling Solution (SD/4/B/121)
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 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<stdio.h> #include<conio.h> #include<dos.h> void main() { clrscr(); int a,b,n,c,d,x=0,y=1,l=1; printf(...
#include<fstream.h> #include<stdio.h> #include<ctype.h> #include<stdlib.h> void ReadFile() { char filename[...
A Management Story of an Ant and the Lion ================================================ Once upon a time Mr. Ant used to work ...
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)) ...
Download the File. Click here to Watch the Explanation & Developing Video