><stdio> usually requires an fseek() when switching between read <--> write >modes on a file opened in any of the "+" modes. This is to insure that the >buffer pointers are set up properly. The manual says fseek isn't necessary of EOF is reached on input.