Loda data from file function