Takes as an argument a string and a file object



Create the following methods

1. FileCreator: takes as an argument a file name (String) and returns a File object If the file does not exist, create the file
2. FilePrinter: takes as an argument a string and a File object and prints the string to the file on its own line
3. FileCloser: takes as an argument a File object and prints "That's all folks" to the file and closes it. It should return the number of lines in the file, including the one it just wrote
4. FileReader: takes as an argument a file name and reads the contents of the file and prints it to the console.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Takes as an argument a string and a file object
Reference No:- TGS089511

Expected delivery within 24 Hours