Hello,
I am new here so if my post is not within any guidelines i apologize i did search for this topic before i posted. I am a little confused on my current project and was hoping for some clarification. I am to write a program that asks the user to enter the name of the text file and then displays (StringTokenized) line, word, and char counts for the total output. The text file is one that i write as output to be stored behind the scenes. This program uses file I/O. My main difficulty at this point is that i understand how to have the output written to the .txt file in the computer (via a series of print statements) and i am able to access the file. I don't understand how the user would input the file? Would i have a class that does the output behind the scenes, and then the user input class to have the file accessed? Thank you.