I have found a couple things here on SO but they don\'t relate. I don\'t think adding the flag modifier to file streams constructor is the right thing to do I have tried but I