file open with w mode