Added possibility to enforce append mode in OFile
Added a regtest for File