loading teh data to the file