关于RandomAccessFile对象的问题!!马上给分!
RandomAccessFile logFile = new RandomAccessFile("C:\\UInfo.log","rw");
logFile.seek(logFile.length());
logFile.writeBytes("User : "+TxtName.getText()+" at "+LabTime.getText()+" Connection!");
(1)为什么中文写进去是乱码,怎么才能写中文进去!
(2)在文本中的内容怎么是接着写的??我如何写完第一条后换行写第二条呢??
请高手赐教!