For loop, print, prints an unknown symbol in output [duplicate]

You're confusing cat and paste. You want:

outputfile <- paste(file_base, "-",now,"-output.txt", sep="")