1. Write a program to perform read, write and append operation on a file.
Also, count the Number of Lines in
a File.
• Note: readlines() stores each line as a list element.
Example:
['First line\n', 'Second line\n', 'File handling is easy\n', 'Fourth line added later\n']
That’s why len function is used to count total elements in List.
2. Write a program that inputs a text file. The program should print all of the unique words in the file in
alphabetical order. Write a function to count number of lines which start from ‘F’.
3. Scenario: You have a file ([Link]) that contains employee data, and you want to read from it and append
it to another file [Link].
WAP to copy contents of [Link] to [Link].
4. WAP to to count Vowels in a File.