public static void method4() throws Exception
{
BufferedReader bufr = new BufferedReader(new FileReader("d:/aa.txt"));
String line = null;
while ((line = bufr.readLine()) != null)
{
String[] arr = line.split(",");
String str1 = arr[0];
String str2 = arr[1];
System.out.println(str1);
System.out.println(str2);
}
}
打印:
1024*3
dfrgd |