Program #14 *******Please indicate the name of the file used for testing/running the code. Make one code, no separate.**
Posted: Thu Jul 14, 2022 2:28 pm
Program #14
*******Please indicate the name of the file used fortesting/running the code.
Make one code, no separate.*****
Write a JAVA program to get an inputfrom the user and store it into a file. Using Reader and Writerfiles, the program should follow this structure:
• Read the file input.txt usingthe BufferedReader class and store it asa string object.
• Read an input string from the keyboardusing BufferedReader and print it to theconsole.
• Read the previous read string object from the file input.txtusing StringReader, and print itcharacter by character, each character in a line.
• Print the previous read string object to a file called“output.txt” using PrintWriter.
*******Please indicate the name of the file used fortesting/running the code.
Make one code, no separate.*****
Write a JAVA program to get an inputfrom the user and store it into a file. Using Reader and Writerfiles, the program should follow this structure:
• Read the file input.txt usingthe BufferedReader class and store it asa string object.
• Read an input string from the keyboardusing BufferedReader and print it to theconsole.
• Read the previous read string object from the file input.txtusing StringReader, and print itcharacter by character, each character in a line.
• Print the previous read string object to a file called“output.txt” using PrintWriter.