reading file from directory