open file for reading