Write a program that asks the user to enter the name of a text file and then displays the line count, word(token) count and the character(non-delimeter) count in the file in a nice format. Use the...
Type: Posts; User: jan07
Write a program that asks the user to enter the name of a text file and then displays the line count, word(token) count and the character(non-delimeter) count in the file in a nice format. Use the...
No but i can write it out word for word?
It gives me the little miss muffet etc... lines and the assignment says that it is the sample text file to be used as an input to my program, so i am uncertain if the i just create that file or if i...
so would i even need the outputStream statements in this program or do i need to just have it written to file once, and then use input statements to access it?
it asks me to enter the file i enter the file and that is all that happens. I don't believe it is accessing the actual file that i am trying to reference. I have not used printStackTrace() before i...
import java.io.*;
import java.util.*;
public class Project5
{
public static void main(String[] args) throws IOException
{
Scanner inputStream = null;
PrintWriter...
here is what i have so far. I am trying to figure out the I/O thing when it comes to user input in the program itself.
When the assignment says "Write a program that asks the user to enter the name of a text file and then displays the counts", does that mean that i will have the question pop up in the output and...
Thank you for that. Do i need to have both input and output inside my try block though? I do not understand where the output file is supposed to be implemented? Do i use the input and output...
I am given the contents to make the file (6 lines of words). I make the file using output. I see the scanner and input stuff i am just not understanding what exactly to do? I have to ask the user...
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...