#BufferedReader not reading information correctly?

1 messages · Page 1 of 1 (latest)

nova leafBOT
#

<@&987246399047479336> please have a look, thanks.

cold hamlet
#

I can't post my code wtf

rose cipher
#

just post it

#

drag and drop the file for example

nova leafBOT
#

I uploaded your attachments as Gist.

cold hamlet
#

It's with my readFile method

rose cipher
#

ur never putting ur natureOfWorkNeeded anywhere

#

u put it into the data variable

#

and then overwrite that later with the empty line

#

so u throw it away

#

in the other examples, u always used data and put it into another variable for later use

cold hamlet
#

Ah I see

rose cipher
cold hamlet
#

I only need the data var when I'm parsing it

#

Yeah

#

Was just gonna say that

#

Now I get a NumberFormatException

#

java.lang.NumberFormatException: For input string: "7IEL"

#

Ah wait

#

No it still happens

rose cipher
#

well, why are u attempting to parse 7IEL has a number

#

its obviously not a number

#

hence crash

cold hamlet
#

Yeah

#

Text file im using

#

So I guess I need to clear it again?

#

With data = br.readLine();

#

Aha

#

It works thanks so much

#

This was driving me insane