According to Reading and Writing from same file?, if I use 2 streams (one input, and other output) to read and write from/to a file, I have to flush the output one before openin