Adds user input to a .dat file.