#GRADE 12 - PRACTICAL 8 - TEXT FILES """WAP to perform the following operations on ‘ Song.txt’
i) Accept a song(until stop is entered ) & write to the file. Display the file.
ii)Display alternate lines of the file. Also display the number of uppercase & lowercase characters in the file.
iii) Copy all the words starting with ‘a’,'b','c','d' or ‘e’(any case ) into 'abcde.txt’.Display ‘abcde.txt’
iv) Copy all the lines containing the word ‘you’ into a file named ‘you.txt’ after changing it to YOU.
NOTE : Ensure no error is thrown if a non existent file is being read"""
No comments:
Post a Comment