First, put the classic method above the topic:
In the following cases, a large amount of regular data is stored in the formatted reading method of the file:
Almond # eed9c4
Antique brass # c88a65
Cot cot # fdd5b1
Aquamarine #71d9e2
Asparagus #
Fscanf, fprintf, fgets, fputs, fread, and fwrite functions, fscanffputs1. fscanf function and fprintf function 1.1 fscanf Function
The fscanf function can only be input in the format of a text file. The fscanf function is similar to the scanf
We only discuss the format of fscanf (or scanf) here, because these details are not covered in other stickers, and you can take a few detours when reading this article. Only the results, the underlying causes are not analyzed.FILE *pfile;float X1;
1. fscanf function and fprintf function 1.1 fscanf functionThe FSCANF function can only be entered as a format from a text file. The FSCANF function is similar to the scanf function, except that the input object is the data for the text file on disk.
String read/write functions fgets and fputs 1. The function of reading string functions fgets is to read a string from a specified file to a character array. The function is called in the form: fgets (character array name, N, file pointer); where N
This week, I've been working on a task, which is to write a model of multiple model training. We used the C language read and write method, engaged for a week, dug a lot of pits, eventually leveled. A number of useful knowledge are listed below.The
How to explain fscanf (FD, "% * [^/n]")
Posted on:2007-11-23 16:09:071Floor score:40
"% [^/N]" indicates to read the input string until the character '/N' is met. ^ indicates no.
Modify Delete Report
OpenGL is a set of open 3D graphics software interfaces recently released by SGI. It is suitable for a wide range of computer environments. From personal computers to workstations, OpenGL can achieve high-performance 3D graphics. OpenGL not only
With the help of software, you can go to linux for PCB-general Linux technology-Linux programming and kernel information. The following is a detailed description. My bashrc is as follows
# Cadence PSD environment icq 111290069.
CDS_INST_DIR
Fgets and fputs, fread and fwrite, fscanf and fprintf fgets and fputs, fread and fwrite, fscanf and fprintf
String read/write functions fgets and fputs1. the fgets function of the string reading function reads a string from a specified file to a
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.