You need to sign in to do that
Don't have an account?
anil Kumar
Pipe delimiter text file parsing
Hi All,
I want to parse pipe delimiter .txt file in apex class and save the data into custum objects. Pipe delimitertext file i am getting from other application. Below is sample file. Please help to parse this file.
|BILLDATA|RCB|3517|SUM|11022017|61113
RecordType|ReferenceNumber|OtherData|dtStatement|dtDue|BillerInvoiceNo|NameFirst|MiddleName|NameLast|CompanyName|Address|Address2|City|State|Zip|Phone|Fax
Thanks,
Anil Kumar
I want to parse pipe delimiter .txt file in apex class and save the data into custum objects. Pipe delimitertext file i am getting from other application. Below is sample file. Please help to parse this file.
|BILLDATA|RCB|3517|SUM|11022017|61113
RecordType|ReferenceNumber|OtherData|dtStatement|dtDue|BillerInvoiceNo|NameFirst|MiddleName|NameLast|CompanyName|Address|Address2|City|State|Zip|Phone|Fax
Thanks,
Anil Kumar
list<string> Values = yourstring.split('|');