readdata for fileS