Set up a file containing n records, the first word of space (4) record the total number of n, n word then give each record length (bytes), the remainder is composed of individual records, write a according to the file pointer and record number (numbered from 1 to start the first k> read record function, c language is not good, come and ask bosses help