java - read file to the very end -


possible duplicate:
whole text file string in java

how can read text file end?

actually need output whole file screen, therefore think need whole data in file string.

use fileutils's readfiletostring() method.

string content = fileutils.readfiletostring(new file("file.txt"), "utf-8"); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -