How can I read a .txt file from my server, and preserve it\'s linebreaks? Note that the linebreaks aren\'t like this /n or something, they are more
.txt
/n
For output? Just use nl2br
nl2br
$file = file_get_contents( 'file.txt' ); echo nl2br( $file );
Also works with fopen.
fopen