• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

read next byte

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ...

 
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ..
 
reply
    Bookmark Topic Watch Topic
  • New Topic