Fastest file reading in C

前端 未结 7 1454
耶瑟儿~
耶瑟儿~ 2020-12-05 00:50

Right now I am using fread() to read a file, but in other language fread() is inefficient i\'v been told. Is this the same in C? If so, how would faster file reading be done

7条回答
  •  盖世英雄少女心
    2020-12-05 01:38

    I'm thinking of the read system call.

    Keep in mind that fread is a wrapper for 'read'.

    On the other hand fread has an internal buffer, so 'read' may be faster but i think 'fread' will be more efficient.

提交回复
热议问题