home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_10 / 559.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-29  |  761KB  |  2550x3300
Labels: book | poster | reckoner
OCR: 10.2 An Introduction to Files in C 559 the files. The function fopen() makes a file available for use by the program. holds typical call to fopen sepa "y!l infi fopen( fname uffer ermi In this call, the value returned by fopen ( is of type FILE It is assigned to argu the FILE variable infile. There are two parameters to fopen the : the the pathname of the file to be opened and the second is the mode for the file. The as usu to fopen() library function will connection between the program the and the identifier file named in the first parameter so that the program can then use infile to refer to the file stan- The mode ofa file determines whether the file is opened for reading, writing, pro- or a combination of the two. The mode indicates that the file 18 opened for rants reading only file c ...