In R, how can I import the contents of a multiline text file (containing SQL) to a single string?
The sql.txt file looks like this:
SELECT TOP 100
I use sql <- gsub("\n","",sql) and sql <- gsub("\t","",sql) together.
sql <- gsub("\n","",sql)
sql <- gsub("\t","",sql)