Re: [blug-prog] fopen in a+ mode
On Mon, Dec 31, 2001 at 08:33:03PM +0530, kameshj@... wrote:
| I opened the file in a+ mode.when I rewind the file stream i expect it to move to the beginning of the stream but it is not moving the stream to beginning but to the end of the stream.
| Any way to move the stream to beginning.
1. This is not possible. Try and reconstruct an (small) example, where
the above happens, and post it to the list.
2. You can try fseek with SEEK_SET
Chirag Kantharia, symonds.net/~chyrag/
Linux scrooge 2.4.17 #2 Mon Dec 24 12:46:20 IST 2001 i686 unknown