I am using this link to embed text files within my thesis.
Include data from a .txt verbatim
Unfortunately, the contents of the text file keeps ignoring the margins. I have tried using | and (/) within my text files to return line but it doesn't work. I am using the exact code provided by nnunes.
Thanks for any assistance in advance!

\smallor\footnotesizeor whatever works. If you know the maximum line length that can be generated you can decide the font in advance. Or you can use an environment such asalltt(orlistingswith suitable options) to allow line breaks if that makes sense in your context – David Carlisle Apr 14 '18 at 18:58\tinybefore the verbatim input. or whatever is needed. You have not said how wide your page is, how wide your verbatim text is so people can only give general hints not tell you exactly what font size to use. – David Carlisle Apr 14 '18 at 19:02allttor use listingsbreaklinesoption or ... – David Carlisle Apr 14 '18 at 19:09