How many random / sequential access per fread / fwrite?

前端 未结 5 1211
孤街浪徒
孤街浪徒 2021-01-21 03:53

I have the following question regarding C file I/O.

At a physical level (harddrive), is it valid to assume that every fread(n_blocks, size, length,FILE fp)

5条回答
  •  佛祖请我去吃肉
    2021-01-21 04:41

    No, it's not. The blocks of a single file may be scattered all over the hard disk if the filesystem is fragmented.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题