Question: Write a program that reads a text file of deferent lines lengths, though they are not align from right, and write the contents of that
Write a program that reads a text file of deferent lines lengths, though they are not align from right, and write the contents of that file in a new one of fixed length given by the user, So the new file should be aligned from right and left by adding spaces as needed between words, keeping track of the period at the end of any line or paragraph. You may use any data structure you want to perform the task. Your program should also provide the user with the following demands:- 1- The size of the new file in characters. 2- Number of non space characters in the file. 3- Number of lines in the file. 4- Number of words that matches a given word ignoring case. 5- the number of words of a given length 6- Copying the file of the existing length of lines to a new file of another length at any time and change the name of the new file with that of old one. (JAVA)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
