import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
public class test {
public static String testa(File file) throws IOException{
InputStreamReader isr = new InputStreamReader(new FileInputStream(file), "gbk");
BufferedReader br = new BufferedReader(isr);
String s ="";
while((s = br.readLine())!=null){
System.out.println(s);
}
return null;
}
public static void main(String[] args) throws IOException {
File file = new File("D:/desk/阿里短信.txt");
testa(file);
}
}