I’m trying to set the Delimiter character for the end of line to a Carriage Return. Working from the code example in the XoJo documentation, I’m getting a run time error at “fileStream.Delimiter = D” in the code snip below. If I comment that line out and let XoJo use the default, it works fine. Any ideas?
Var file As FolderItem = FolderItem.ShowSaveFileDialog(“TextTypes.Text”, FileName)
Var D as string = Chr(13)
If file <> Nil Then
Var fileStream As TextOutputStream
fileStream.Delimiter = D
fileStream = TextOutputStream.Create(file)