I have got a text file containing reference, name, address, amount, dateTo, dateFrom and mandatory columns, in the following format:i would lke to pull the specific information then write the information to the corresponding columns
['HEADER', 'A000000209457', '20170706140003\n']
['10005369133', '000', '', '', '', '', 'MM', '', '', '',
'[email protected]', '0836129535\n']
['10005369133', '150', '', '278.68', '2.05', '0.00', '1.93', '0.00',
'282.66\n']
['TRAILER', 'A000000209457', '1', '282.66\n']
the output should look like this in a CSV FILE
Sub Total,VAT,Due Date,Previous Account Balance
280.73,0.00,2015/03/24,280.73