open file in writeonly way