Update file.ex

fixed typo: opened with "two" modes