java读取文件方法
From http://www.cnblogs.com/lovebread/archive/2009/11/23/1609122.html