File::replaceText() update

Opening file with r+ mode