file_stream::read/write and others: Throw exception when stream is not open