我在文本中记录一个String类,一个Long,一个int.所以想到了RandomAccessFile();
writeUTF();
writeLong();
writeInt();
Writes a string to the file using UTF-8 encoding in a machine-independent manner. 
First, two bytes are written to the file, starting at the current file pointer, as if by the writeShort method giving the number of bytes to follow. This value is the number of bytes actually written out, not the length of the string. Following the length, each character of the string is output, in sequence, using the UTF-8 encoding for each character.
问题1
但是我对UTF-8 encoding in a machine-independent manner没办法理解。
这是个什么东东。UTF-8编码是个什么东西,自持汉字显示吗?
它说写一个字符窜用UTF-8的编码格式,
首先 开始在当前文件位置2个字节被写倒文本里是为了记录文件的长度,根据长度来输入一些字符串的长度。每个字符是用来UTF-8格式来写的(是这么个什么意思吗)。

问题2
我这样说对吗?
上次我用的IO流中的RandomAccessFile类中的ReadLine()方法读出的中文数据为啥是乱码,有人说是我应该用字符流。
再次我要更正一下ReadLine()只能读字符流,不能读字节流。
出现乱玛是字符的编码格式不对要转换的,凡是出现中文的数据最好是转换成GBK格式。
 GG JJ PLMM 指点指点。