Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. [SOLVED] Re: Copying from one file(source) to another file(destination)

    That's correct. As a work around, chose an int value to represent the "?".

    For example:
    final static int QuestionMark = 54321; // this value represents a "?"

    theArray[i] = QuestionMark; // ...
  2. [SOLVED] Re: Copying from one file(source) to another file(destination)

    As Greg said: All elements of an array must be of the same type.

    Why do you want a value in an int array to be a "?"?

    You could chose one of the possible int values to represent a "?" and use...
  3. [SOLVED] Re: Copying from one file(source) to another file(destination)

    The code in post#1 works for me. Are there any lines in source.txt?
  4. [SOLVED] Re: Copying from one file(source) to another file(destination)

    It should be false after the lines are read.
    Have you tried debugging the code by adding a call to println() inside the loop to print out the value of line each time it is assigned a value?
Results 1 to 4 of 4