File * file pointer

Source: Internet
Author: User

 

In the program, we can see such content: file * stream;

Explanation:

The file Pointer Points to a file using a pointer variable in C language. This pointer is called a file pointer.

The file pointer can be used to perform various operations on the files it refers.

The general format of the definition instruction file pointer is:

File * pointer variable identifier;

The file should be written in uppercase. It is actually a structure defined by the system, which contains information such as the file name, File status, and current file location. You do not have to worry about the details of the file structure when writing the source program.

For example, file * FP indicates that FP is a pointer variable pointing to the file structure. You can use FP to find the structure variable that stores the information of a file, and then find the file according to the information provided by the structure variable, perform operations on files.

In general, FP is also called a pointer to a file.

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.