I have a blob with below format. First row gives header details and next 2 rows as data record and final row as trailer record which contains data records count. While record the file I want to define my schema as single field and once I remove my trailer record I want to convert it into proper schema format with "|" as delimiter. Could you let me know how can I achieve this please.
DeptID|DeptNAme
1|A
2|B
2
Thanks in Advance Kumar