I am trying to generate a .csv file using GP Script. I want the resulting file to look like this:
PRESET,1,2,3
Hello, A,B,C
GoodBye, D,E,F
In order to generate this I need to insert a CRLF at the end of each line. I tried this, but it didn’t work:
var
Success : Boolean
BigString : String = ""
BigString = "PRESET,1,2,3" + IntToHexString(13)
BigString = BigString + "Hello, A,B,C" + IntToHexString(13)
BigString = BigString + "GoodBye, D,E,F" + IntToHexString(13)
Success = SaveStringToTextFile ("BigString.csv", BigString)
If Success Then
Print("SUCCESS")
Else
Print("FAILURE")
End
The code worked fine but I didn’t get the CRLF at the end of each line?