out.writeBytes( " \r\n " );
mess = " 写入文件 " ;
byte buffer[] = new byte [ 1024 ];
buffer = mess.getBytes();
out.write(buffer);
out.close(); // 关闭文件流
} catch (IOException e) {
e.printStackTrace();
}
# re: 解决RandomAccessFile写入文件乱码的办法 2008-03-26 14:54 Find it, try it, experience it 回复 更多评论
I didn't see any thing here can resolve the problem related to encoding.
# re: 解决RandomAccessFile写入文件乱码的办法[未登录] 2008-03-26 15:07 AA 回复 更多评论
明明就是追加,谁都会的