Search:

Type: Posts; User: Kewish

Search: Search took 0.18 seconds.

  1. Replies
    17
    Views
    1,381

    You are welcome and yes they are a vital source...

    You are welcome and yes they are a vital source of information.
  2. Replies
    17
    Views
    1,381

    Do you what whitespace in your text file? I.E....

    Do you what whitespace in your text file?

    I.E. blank lines
  3. Replies
    17
    Views
    1,381

    Re: File Processing- Command Line Arguments

    Post your completed code along with any exceptions you get in the console or other output.
  4. Replies
    17
    Views
    1,381

    Re: File Processing- Command Line Arguments

    Create the File Object first. Then the Scanner with your newly created File object. Forget about DataInputStream. You will be using the Scanner.

    --- Update ---

    Here's a post from our very own...
  5. Replies
    17
    Views
    1,381

    args is the array of command line arguments. ...

    args is the array of command line arguments.

    args [0] is a value from the array. And the datatype is a String.

    Can you constuct a File object with that information? Yep.
  6. Replies
    17
    Views
    1,381

    Yep and what is args [0]???

    Yep and what is args [0]???
  7. Replies
    17
    Views
    1,381

    Re: File Processing- Command Line Arguments

    Not InputStream itself, what did you pass to it rather?

    What does File take in the contructor? Read here File Class - Constructor
    What is args[0]??
  8. Replies
    17
    Views
    1,381

    Re: File Processing- Command Line Arguments

    Excellent.

    You can still use your command line argument. How did you do it in your original code? What datatype does the File constructor take? What datatype is the command line arg?
  9. Replies
    17
    Views
    1,381

    Re: File Processing- Command Line Arguments

    Do you have to use DataInputStream/FileInputStream? The Scanner class will suffice for your purpose Scanner Class - API

    Write down the steps you think your program would have to take to achieve...
Results 1 to 9 of 9