Loading ...
Sorry, an error occurred while loading the content.

Re: [blug-prog] fopen in a+ mode

Expand Messages
  • Chirag Kantharia
    ... 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
    Message 1 of 1 , Jan 1, 2002
    • 0 Attachment
      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

      chyrag.
      --
      Chirag Kantharia, symonds.net/~chyrag/
      Linux scrooge 2.4.17 #2 Mon Dec 24 12:46:20 IST 2001 i686 unknown
    Your message has been successfully submitted and would be delivered to recipients shortly.