读出文本文件内容

private static Vector stat_message=new Vector(); public static void getstatdate(String path) { File getche=new File(path); try { BufferedReader br=new BufferedReader(new FileReader(getche)); String tmp=null; try{ while((tmp=br.readLine())!=null) { stat_message.add(tmp); } } catch(IOException ex1) {} } catch(FileNotFoundException ex) {} }

你可能感兴趣的:(文本文件)