Ro, RW, and Zi data section in arm Compilation
Arm program (the program being executed in the arm system, rather than the binfile stored in the ROM)
An arm program contains three parts: RO, RW, and Zi segments.
Ro is the instruction and constant in
Fgets (read a string from the file)Related functions: open, fread, fscanf, GETCHeader file include Define the function char * fgets (char * s, int size, file * stream );Function Description: fgets () is used to read characters from the file referred
C # obtain the file size, creation time, file information, and attributes of the fileinfo class. Table 09:00:40 | category: C # | report | font size subscription openfiledialog1 = new openfiledig1 (); if (openfiledialog1.showdialog () = dialogresult.
C-based file operations
In ANSI C, the operation of the file is divided into two ways, that is, streaming file operations and I/O file operations, respectively, described below.
One, streaming file operation
The file operations in this way have an
In Linux, you will often see the file size, which is usually used by the command du:The command is explained in detail below:[Email protected] logs]$ du--helpUsage: du [options] ... [File] ...Or: du [options] ...--files0-from=fCalculate the disk
First, view the file as the disk size generally use the du or DF commandDF Command: used to display the available disk space on a disk partition . The default display unit is KB. You can use this command to get information about how much space the
fopen (Open file)Correlation function Open,fclose
Table header file #include
Defines the function FILE * fopen (const char * path,const char * mode);
The function description parameter path string contains the file path and filename to open, and
fopen (Open file)Correlation function Open,fcloseTable header file #include Defines the function FILE * fopen (const char * path,const char * mode);Function description The path string contains the file path and filename to open, and the parameter
fopen (Open file)Correlation function Open,fcloseTable header file #include Defines the function FILE * fopen (const char * path,const char * mode);Function description The path string contains the file path and filename to open, and the parameter
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.