Question: this is in java 1. Selects a text file from your computer using a Java Swing JFileChooser or a JavaFX FileChooser, which starts out showing
this is in java
1. Selects a text file from your computer using a Java Swing JFileChooser or a JavaFX FileChooser, which starts out showing the files in the same directory from which the program was executed.
2.Reads the selected text file. The text file for my test will consist of a number of rows, each row containing one or more strings of characters, separated by spaces. The strings themselves will only contain printable, non-space characters.
3. Writes the final string of each input line to a separate line on the output file. The output text file will be in the same directory as the input text file, where the naming convention is as follows: If the input file is abc.txt, the output file is abc_out.txt.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
