modify read file class for reading different file names