reading files from selected directory