Question: Write a program that asks the user for the name of a file. The file should be opened for reading The program should read

Write a program that asks the user for the name of a


Write a program that asks the user for the name of a file. The file should be opened for reading The program should read the contents of the file, change all characters to upper case and display the output. Sample Test Cases: Hre is the test case scenario1: Enter the name of the file to be read: UppercaseTestData.txt HELLO THERE HOW ARE YOU HOPE YOU ARE ENJOYING THIS CLASS Files read, converted and then closed. Here is the test case scenario2: Enter the name of the file to be read: abc.txt The file abc.txt does not exist or could not be opened.

Step by Step Solution

3.44 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javaioFile import javaioFileNotFoundException import ja... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

663d5319bc1d7_967983.pdf

180 KBs PDF File

Word file Icon

663d5319bc1d7_967983.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!