"r+"Opens for both reading and writing. (The file must exist.)"w+"Opens an empty file for both reading and writing. If the given file exists, its contents are destroyed 把分都给我吧,好不好?
You can use the Help!Such as The C++ and other C Language meterial!!!
fseek(fp, offset, direction); if direction == 0 new offset = offset if direction == 1 new offset = old offset + offset; if direction == 2 new offset = filelen - offset;
if direction == 0
new offset = offset
if direction == 1
new offset = old offset + offset;
if direction == 2
new offset = filelen - offset;