View Single Post
Old 03-11-2004, 05:19 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,721
redhead is on a distinguished road
It's highly unlikely to be possible, the IO system won't know how to handle it.
You write to a file pointer, yet you expect the IO system to move the remaining bytes pointed at, automaticaly as you write to the current position.

I don't see how this can be handled by any system, without some form of temporarily storing the remaining data and then moving it back after finishing the adding.

If you're talking about changing data within the file itself, meaning overwriting already stored data, then use fopen(), fseek(), fwrite(), fclose() and you're done.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote