file handling, reading from file

Assuming that a text file named ‘BOOK’, already contains some text written into it.Write a function named noVowel(), that reads the file ‘BOOK’ and creates a new file named newBOOK, which shall contain only those words from the file ‘BOOK’ which donotstart with an upper case vowel, i.e. with ‘A’, ‘E’, ‘I’, ‘O’, ‘U’. For example, if thefile ‘BOOK’ contains: “One and Only One”. Then the file ‘newBOOK’ shall contain: “and”.



Read more here: https://stackoverflow.com/questions/67388992/file-handling-reading-from-file

Content Attribution

This content was originally published by nikhil rana at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: