[eluser]Unknown[/eluser]
Just found the answer so posting solution for anyone else who encounters it ...
the '\r\n' needs to be on double quotes...so corrected code is
Code:
$reportOutput = '';
foreach($data['displayPostingRecords'] as $result)
{
$reportOutput .= rawurldecode($result['wpPostlink'])." \r\n ";
}
//download the file..
$fileName = 'report-articleBatchID-'.$articleBatchID.'.txt';
$this->load->helper('download');
force_download($fileName, $reportOutput);