File Handling Question Class 12
File Handling Question Class 12
1. Write a function in Python to read a text file, Alpha.txt and displays those lines
which begin with the word ‘You’.
2. Write a function, vowelCount() in Python that counts and displays the number of
vowels in the text file named Poem.txt.
3. Write a method Find_word() in python to read the lines from a text file “India.txt”,
to find and display the occurrence of the word “INDIA”.
4. Write a method Display_word() in python to read the lines from a text file
“Poem.txt”, and display those words which are more than five characters.
5. Write a Function Change() that copies a text file “source.txt” onto “target.txt”
barring the lines starting with letter “K”.
Binary File
csv File