- 0
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
AdBlock Extension Detected!
Our website is made possible by displaying online advertisements to our members.
Please disable AdBlock browser extension first, to be able to use our community.
Question
TroubleChick
url = new URL(Config.WEB_LINK); is = url.openStream(); // throws an IOException br = new BufferedReader(new InputStreamReader(is)); int count = 0; while ((line = br.readLine()) != null) { if (count == 0) { comanda = line; } count++; } System.out.println("DEBUG: Webcheck:" + comanda);The file is a simple .txt file containing "Still doesen't work how it should."
First output: DEBUG: Webcheck:announce Still doesen't work how it s
Second output: DEBUG: Webcheck:announce Still doesen't work how it should.
I've made a thread to check every 60 seconds and the first time doesen't read the whole line, but the second time it read it.
Any idea why?
18 answers to this question
Recommended Posts