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
Post a Comment