Java advanced video _ IO Input and Output 02, 03 randomaccessfile learning notes

Source: Internet
Author: User

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:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.