I want to attach some files to a post on one of Stack Exchange sites. What is the best way to do this?
Use a file upload service like SkyDrive and post the link on the page like so:
Host them somewhere else and post a link. StackOverflow does not provide file hosting services.
LaTeX is just code, so if you have a question about how to do something in LaTeX, just include a snippet like you would any other piece of code.
(Hint: indent it by four spaces, or select it and click the 'binary' icon in the toolbar of the edit window.)
I'd recommend using Pastebin for this scenario
PS: Seems that people didn't notice that the requester was asking to include LaTeX files, which are markup based ones, thus they are plain text files!