This function takes a character and writes them to a .dat file. The file
will be written to the location specified by the name
argument. If the file
already exists, it will be overwritten. The file format is plain text, with each
line terminated by a newline character.
Examples
write_ampl_lines("param s:= 1")
file.remove("Problem.dat")
#> [1] TRUE