Is there a way to display an attached txt file rather than require it be downloaded?

But wouldn’t the user have to manually copy and paste the contents in?