pwrite


通过pwrite是可以修改我文件中的部分内容而不用把文件全部读出来的。但是如果长度不一样的话则需要从修改的位置到文件末尾都重新写入。但是如果写入的长度和原来不一致的话,从修改的位置到文件的末尾肯定都是要修改的


Author: 蒋璋
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint polocy. If reproduced, please indicate source 蒋璋 !