Search:

Type: Posts; User: Haminaya

Search: Search took 0.11 seconds.

  1. Replies
    10
    Views
    1,094

    [SOLVED] Re: .txt file won't convert to ints

    It was the UTF16 encoding! Thank you so much! I've toiled at this for the past week and haven't gotten any further. Much appreciated.
  2. Replies
    10
    Views
    1,094

    [SOLVED] Re: .txt file won't convert to ints

    The output is:


    col=0, line before .replaceAll=��1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1<
    Exception in thread "main" col=0, line after .replaceAll=1111111111111111<
    47
    0
    0...
  3. Replies
    10
    Views
    1,094

    [SOLVED] Re: .txt file won't convert to ints

    col printed out as 1, and the string was "1111111111111111" (which it was supposed to be). So it's having the issue where it's saying the first index is an empty string, even though it isn't.
  4. Replies
    10
    Views
    1,094

    [SOLVED] Re: .txt file won't convert to ints

    col increments with each time the code loops, and when it reaches a value of 16 (checked through col<line.length()), it increments the value of row. It keeps doing this until row is 9 or more...
  5. Replies
    10
    Views
    1,094

    [SOLVED] .txt file won't convert to ints

    Heya! I'm having trouble converting a .txt file to ints and storing them in an array. All variables not seen have been properly initialized. Initially, I was getting an error message similar to the...
Results 1 to 5 of 5