Http://writeblog.csdn.net/PostEdit.aspx? Entryid = 6155925
First, let's talk about our understanding of random files. The so-called random is not equal to the random in mathematics. Here the random refers to the random position pointed by the cursor, it can point to any part of the file class, where it refers to, where we can read or write, and the indicator is controllable, mainly equal to the operations of long files, what is a common file! For the moment, I understand that information can be encapsulated with tears, such as employee information. That is, the age, name, etc., the student's examination score, etc. The information in the random file is byte, the string type should be converted into bytes, and the information should be converted into bytes, the following is the code for your practice:
The following is a table of bytes corresponding to the basic data type:
Below are common code tables: