I am trying to "replace" variables in an existing text file (cf an excerpt below) with my R script. Variables are called var1 through to var6 and the values below need to be replced. The position of the variables within the text file is always the same.I am trying to "replace" variables in an existi