fflush is not needed for read only streams