Is er een manier om een bijgevoegd txt-bestand weer te geven in plaats van te vereisen dat het wordt gedownload?

The easy solution would be for you to use the literal text inclusion (CTRL+e) like this:

This would be the content of you text file
It's fixed formatted
Good luck