you should type the code what can filter that text file.
you included this:
Once upon a time there was a dog called freddie.
Freddie had no friends.
Ahhhh, poor Freddie
so you would make 'string function' what can put '<br>' each end of line in text file before print
but I'm sorry
I don't know how to solve that problem..
I mean I can't tell you that code