used readfile class for sortm,wc,reduce space