java读取本地文件
package com.ylzinfo.Result;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
public class GetFinalExcel {
public static void main(String[] args) throws Exception {
URL url = new URL("file:///E:/PerformanceTest/copy/5.html");
url.openConnection();
BufferedReader br = new BufferedReader(new InputStreamReader(url
.openStream()));
String line = null;
while ((line = br.readLine()) != null) {
System.out.println(line);
}
}
}