read file via openFile