7.31 file Day20

Source: Internet
Author: User

---note---

The way meaning "R" opens, read only;

"W" open, the file pointer refers to the head, write only;

"A" opens, pointing to the end of the file, appended to the existing file;

"RB" opens a binary file, read only;

"WB" opens a binary file that is written only;

"AB" opens a binary file, which is appended;

"R+" opens a file that already exists in read/write mode;

"W+" creates a new text file in read/write mode;

"A +" opens a file file for append in read/write mode;

"rb+" opens a binary file in read/write mode;

"Wb+" creates a new binary file in read/write mode;

"ab+" opens a binary file for append in read/write mode;

When a file is opened successfully with fopen (), the function returns a pointer to a file and returns a null pointer if it fails to open.

---note---

7.31 file Day20

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.