File Handling
File Handling
a. Save this “The journey of a thousand miles begins with a single step” to
SampleText.txt inside your eclipse project folder.
b. Write the correct code to generate the given output using try catch with exception.
c. Make sure that you split your screen showing the correct code and the console
output. (paste your solution with output here in console)
Code:
3. Create an OutputFile.java that will display the length, the specific path, and the number of
words of the SampleText.txt then store and display it using SampleOuputText.txt. Use a try
catch with exception. (paste your solution with output here in console and text file)
4. Append a new row data with the text ”This little light of mine, I’m gonna let it shine” in
SampleText.txt then follow the instruction in number 3. Take note that it should contain
additional row data. (paste your solution with output here in console and text file)