Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

read next byte  RSS feed

 
Timo Lumme
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, how tell count read next char(byte) from file?



problem is that is reads the number 1 again and doesnt read the next char / byte from file ...

 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
note that one of the tips in how to ask a question is "Post Real Code". It is always faster to help someone if they post the actual working code they are using.
http://faq.javaranch.com/java/PostRealCode

I have some questions about what you posted:

where does the variable named "text" come from?

why create a buffered reader and not use it?

why are you creating and starting the thread Pause1?
 
Timo Lumme
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
heres the full code:



TestData.txt has a single line inside: [5.7.14.18.24.26.31]
trying to read into vector the numbers but prb is to read 2 digits as one or at once ..
into the vector ..
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!