Buffered Reader is not reading my whole file java -


bufferedreader reader = new bufferedreader(new filereader("c:\\users\\normenyu\\desktop\\programming\\java\\eclipse\\book\\"+thebook+".txt"));             string line = reader.readline();system.out.println(line); 

my file:
(tab)you on hiking trip friend(also lives in rented apartment). find walking jungle. walk, find lonely. “help!”, heard. (enter)(tab)“what that,” ask friend. there no reply. wait... friend? start find way back, , find friend stuck in quicksand.

do you: walk towards friend , try save him or stay away because might stuck in quicksand

the program prints: on hiking trip friend(also lives in rented apartment). find walking jungle. walk, find lonely. “help!”, heard.

help!! way, things in parentheses not written in notepad.

using loop can read each line in file.

bufferedreader reader = new bufferedreader(new filereader("c:\\users\\normenyu\\desktop\\programming\\java\\eclipse\\book\\"+thebook+".txt")); string line;  while((line = reader.readline()) != null) {   system.out.println(line); } reader.close() 

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -