Search:

Type: Posts; User: jan07

Search: Search took 0.08 seconds.

  1. Thread: File I/O

    by jan07
    Replies
    20
    Views
    2,389

    Re: File I/O

    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...
  2. Thread: File I/O

    by jan07
    Replies
    20
    Views
    2,389

    Re: File I/O

    No but i can write it out word for word?
  3. Thread: File I/O

    by jan07
    Replies
    20
    Views
    2,389

    Re: File I/O

    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...
  4. Thread: File I/O

    by jan07
    Replies
    20
    Views
    2,389

    Re: File I/O

    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?
  5. Thread: File I/O

    by jan07
    Replies
    20
    Views
    2,389

    Re: File I/O

    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...
  6. Thread: File I/O

    by jan07
    Replies
    20
    Views
    2,389

    Re: File I/O

    import java.io.*;
    import java.util.*;

    public class Project5
    {
    public static void main(String[] args) throws IOException
    {
    Scanner inputStream = null;
    PrintWriter...
  7. Thread: File I/O

    by jan07
    Replies
    20
    Views
    2,389

    Re: File I/O

    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.
  8. Thread: File I/O

    by jan07
    Replies
    20
    Views
    2,389

    Re: File I/O

    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...
  9. Thread: File I/O

    by jan07
    Replies
    20
    Views
    2,389

    Re: File I/O

    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...
  10. Thread: File I/O

    by jan07
    Replies
    20
    Views
    2,389

    Re: File I/O

    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...
  11. Thread: File I/O

    by jan07
    Replies
    20
    Views
    2,389

    File I/O

    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...
Results 1 to 11 of 11