divide file input function for file load and inputting data class