# Inserting new line on txt file

**URL:** <https://forum.kirupa.com/t/inserting-new-line-on-txt-file/167122>\
**Category:** Uncategorized\
**Created:** [October 25, 2005, 5:33pm UTC](https://forum.kirupa.com/t/inserting-new-line-on-txt-file/167122 "2005-10-25T17:33:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![varecha](https://avatars.discourse-cdn.com/v4/letter/v/e8c25b/32.png) [@varecha](https://forum.kirupa.com/u/varecha)\
**Post date:** [October 25, 2005, 5:33pm UTC](https://forum.kirupa.com/t/inserting-new-line-on-txt-file/167122/1 "2005-10-25T17:33:29Z")

</div>

hi everybody, i have an script that uses a header to output to a txt file to be downloaded but i cant manage to write new lines on it, when i open the file on my local machine it just has one only line, i have tried  
\r and even \<br\> 😛  
this is the header im using:

header(“Pragma: no-cache”);  
header(“Expires: 0”);  
header("Content-Transfer-Encoding: text/plain);  
header(“Content-type: application/force-download”);

i have tried changing the charset to utf-8 for the encoding but didnt work either, im getting desperate, any help would be greatly appreciated, thanks for your time folks
