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 / 591.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-29  |  817KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: 10.7 Random versus Sequential Access in Files 591 In contrast to sequential access, random access allows the reading of the any records in any order For example. the third record could be read, then the fifteenth addi record, and then the record. Two library functions in the standard library ve help with random access of files. These functions are fseek) and fte ou The function fseek moves the file pointer to any byte position in the file. takes three parameters. typical call to fseek() might be fseek( offset start and where fp is the FILE variable associated with the file whose pointer is to be moved. The parameter offset is a variable of type buo that represents the byte or number of bytes that the pointer be moved The parameter start indicates the beginning position for the file pointer ...