fseek 到文件末尾
时间: 2023-10-20 10:27:30 浏览: 135
fseek函数可以用来将文件指针移动到文件的不同位置。要将文件指针移动到文件末尾,可以使用以下方式:fseek(fp, 0, SEEK_END)。其中,fp是指向文件的指针,0表示偏移量为0,而SEEK_END表示从文件末尾开始计算偏移量。通过这样的调用,文件指针就会移动到文件的末尾位置。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [fseek() 函数用法](https://blog.csdn.net/Wzwzzz__/article/details/127659345)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [C语言文件操作](https://blog.csdn.net/liuyanfeier/article/details/62887552)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文