You can probably find some text to image converters that can help you with .txt to .png (or any other image) conversion. For example the online TEXT to IMAGE converter can be used for exactly this purpose, generating a image from preferably ASCII art.
The other option would be simply to screenshot your text file opened in Windows Notepad etc.