http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46373
--- Comment #3 from e01reynier at gmail dot com 2010-11-09 07:50:37 UTC --- (In reply to comment #1) > See the documentation that comes with gfortran. > > You can use > > * GFORTRAN_UNBUFFERED_ALL:: Don't buffer I/O for all units. > * GFORTRAN_UNBUFFERED_PRECONNECTED:: Don't buffer I/O for preconnected units. > > to control the buffering of IO. I try under bash with: export GFORTRAN_UNBUFFERED_ALL=y or export GFORTRAN_UNBUFFERED_PRECONNECTED=y but fflush is always called when I read from a string. Anyway reading from a string has nothing to do with buffered I/O ! Why the hell is fflush called ?