I'm trying to generate a file that users can download - it is basically just pulling data from mysql and printing it out.
What I did so far was to put the content-type header as text/plain which works great it prints out to a download for users, but when I try to put each row of data on a newline using the \n char It just shows up as an unrecognized charachter and they are all bundled together.
If anyone could point me in the right direction that would be great, Thanks.