open input file for read only