Hello guys,
I'm stucked in one custom csv file import process. Your help much appreciated.
following steps as below,
1. I am uploading file using temporary storage class as below
FileUploadTemporaryStorageResult fileUpload = File::GetFileFromUser() as FileUploadTemporaryStorageResult;
2. To read file content I am using ASCIIStreamIO as below
AsciiStreamIo file = AsciiStreamIo::constructForRead(fileUpload.openResult());
file.inFieldDelimiter(','); //separator
file.inRecordDelimiter('\r\n');
3. to read file content in container inside while loop
Container con = file.read();
above working fine but facing issue when csv column has value with comma.
for example we one column has value like "Test1,Test2" in this case container getting two seperate element as "Test1 and Test2".
It should consider Test1,Test2 as single element.
I tried same with CommaStreamIO, CommaTextStreamIO, TextStreamIO but still same result.
Please help me on this.