Question: help with a java program. Every Nth Word Purpose To enhance your understanding of file I/O Directions and example Write a program that prompts the
help with a java program.
Every Nth Word Purpose To enhance your understanding of file I/O Directions and example Write a program that prompts the user for a file name and an integer n. Print every nth word in the file to a separate file named name filename_copy.txt (filename being the file name the user gave you). When your program finishes, write the message File has been created. For this example, assume the file Test.txt contains: Hello my name is Joe and I am a farmer. Enter File Name: Test.txt Enter n: 2 File Test_copy.txt has been created. After your program runs as shown above, the file Test_copy.txt should contain: Hello name Joe I a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
