yakafokon on 01/05/10
Last Edited at 01/05/10 05:44am
private static String readFileAsString(String filePath) throws java.io.IOException{ byte[] buffer = new byte[(int) new File(filePath).length()]; BufferedInputStream f = new BufferedInputStream(new FileInputStream(filePath)); f.read(buffer); return new String(buffer);}
URL: http://snippets.dzone.com/posts/show/1335
Report this snippet Tweet
Comment:
You need to login to post a comment.