public void writeF(){ try { FileOutputStream fis = new FileOutputStream("test.txt"); byte[] a = new byte[8192]; String b = new String("姓名,出生年月,性别职业,爱好"+System.getProperty("line.separator")); a = b.getBytes(); for(int i = 1;i<6;i++){ fis.write(a); } } catch (Exception ex) { } }先看着 下班在给你写
try {
FileOutputStream fis = new FileOutputStream("test.txt");
byte[] a = new byte[8192];
String b = new String("姓名,出生年月,性别职业,爱好"+System.getProperty("line.separator")); a = b.getBytes();
for(int i = 1;i<6;i++){
fis.write(a);
}
} catch (Exception ex) {
}
}先看着 下班在给你写