Topic: Problem With TCSVWriter Enclosing Flag
Hi. I've tried to use this class in my script and the file created always seem to have the fields enclosed with the field Enclosing Char all the time, even when I have specifically entered False in the Enclosing parameter.
e.g. If I have the following code:
var fLogFile: TCSVWriter; begin fLogFile := TCSVWriter.Create(Copy(Application.ExeName, 1, Length(Application.ExeName) - 4) + '.csv', ';', ceCrLf, False, '"'); fLogFile.Write('Hello There'); end.
then the file contents would be:
instead of the expected and wanted:
Am I doing something wrong or is there a problem with the class functionality?