Write to CSV or TXT in Groovy

How To Write To CSV or TXT in Groovy Script (SoapUI)

1. Simple example send def value1 to A1 in spreadsheet
f = new File("C:/DELETEME.csv")
def valueA = "testA"
f.append(valueA+"\r\n")

2. Code for Multiple Columns
f = new File("C:/DELETEME.csv")
def valueA = "testA"
def valueB = "testB"
def valueC = "testC"
f.append("\r\n"+valueA+","+valueB+","+valueC+"\r\n")