调用C语言库函数,在文本中添加和删除这段(红色标记)
End Extended Reserved Data:
[Reserved Data]
0x4f505448
0x00000002
0x45524158
0x0000000c
0x00000000
0x5465726D
0x00000008
End Reserved Data
[Image List]
测试代码
#include <stdio.h>
#include <string.h>
void
main()
{
int
nCount,erase=0;
//erase=0 删除这段,erase=1添加这段
if
(erase==0)
{
FILE
*pFile=
fopen
(
"test.txt"
,
"r+"
);
if
(pFile==NULL)
{}
fseek
(pFile,0,SEEK_END);
nCount =
ftell