0% found this document useful (0 votes)
7 views17 pages

Text File Handling

The document outlines various text file handling functions and their specific tasks, such as counting words, displaying content, and modifying text. Each function is associated with a specific file and includes operations like counting vowels, changing gender pronouns, and displaying lines based on certain criteria. The functions are designed to manipulate and analyze text data in different ways.

Uploaded by

iblamepriy4nshu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views17 pages

Text File Handling

The document outlines various text file handling functions and their specific tasks, such as counting words, displaying content, and modifying text. Each function is associated with a specific file and includes operations like counting vowels, changing gender pronouns, and displaying lines based on certain criteria. The functions are designed to manipulate and analyze text data in different ways.

Uploaded by

iblamepriy4nshu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

TEXT FILE HANDLING

1) Emails.txt , words: @cmail

2) Words.txt , words>5 characters

3) Countwords() , decode.txt , count & return words>=5 characters

4) Content.txt, countlines() , display : @lines

5) Story.txt, showInLines() , separate line and line should end with . ? !

6) Alpha.txt , line: begin with word ‘You’

7) VowelCount() , Poem.txt , display: no. of vowels

8) Function(), Bookname.txt, display: book names having ‘Y’ or ‘y’

9) Count_Dwords() , Details.txt , count words ending with a digit

10) ChangeGender() , BIOPIC.txt , display entire content by replace the word ‘He’ with ‘She’

11) Count_Line() , SHIVAJI.txt , read each line and count total no. of lines

12) Show_words() , NOTES.txt , display entire content in capital letters

13) Countlines() , TESTFILE.txt , count and display the lines which are not starting with any vowel

14) ETCount() , TESTFILE2.txt , count and display the count of alphabets E and T individually(including

small cases e and t too)

15) RevString() , Input.txt , display words starting with ‘O’ in reverse order

16) LongLines() , Lines.txt , display lines which have at least 10 words.


1) Emails.txt , words: @cmail
2) Words.txt , words>5 characters
3) Countwords() , decode.txt , count & return
words>=5 characters
4) Content.txt, countlines() , display : @lines
5) Story.txt, showInLines() , separate line and
line should end with . ? !
6) Alpha.txt , line: begin with word ‘You’
7) VowelCount() , Poem.txt , display: no. of vowels
8) Function(), Bookname.txt, display: book
names having ‘Y’ or ‘y’
9) Count_Dwords() , Details.txt , count words
ending with a digit
10) ChangeGender() , BIOPIC.txt , display entire
content by replace the word ‘He’ with ‘She’
11) Count_Line() , SHIVAJI.txt , read each line
and count total no. of lines
12) Show_words() , NOTES.txt , display entire
content in capital letters
13) Countlines() , TESTFILE.txt , count and display
the lines which are not starting with any
vowel
14) ETCount() , TESTFILE2.txt , count and display the count of
alphabets E and T individually(including small cases e and t too)
15) RevString() , Input.txt , display words starting
with ‘O’ in reverse order
16) LongLines() , Lines.txt , display lines which
have at least 10 words.

You might also like