Re: fstream - problem with reading/writing to file

2009-02-20 Thread Pavel Kudrna
Greg Chicares wrote: On 2009-02-19 20:33Z, Tim McDaniel wrote: I think you mean C99 7.19.5.3/6, which says "output shall not be directly followed by input without an intervening call to the fflush function or to a file positioning function" and vice versa. The C++ standard refers to the C s

Re: fstream - problem with reading/writing to file

2009-02-19 Thread Greg Chicares
On 2009-02-19 20:33Z, Tim McDaniel wrote: > On Thu, 19 Feb 2009, Pavel Kudrna wrote: >> I have found problem with read and write to file using fstream. The >> following example opens existing file for read+write, separately >> writes "Hello" and " world!" and in between it tries to read one >> cha

Re: fstream - problem with reading/writing to file

2009-02-19 Thread Tim McDaniel
On Thu, 19 Feb 2009, Pavel Kudrna wrote: I have found problem with read and write to file using fstream. The following example opens existing file for read+write, separately writes "Hello" and " world!" and in between it tries to read one character from the file. The problem is that without call