I have a large text file (~6kB) that forms part of my challenge. How do I provide a link to download it instead of embedding the text in my question? I believe I have seen other questions do this but I don't have any examples.

  • \$\begingroup\$ Note that 6k does fit in a question (the limit is 30k characters). If you put the text in a code block it'll get a scrollbar anyway, so it won't take up all the much space. If that's still too much you can wrap it in a stack snippet and hide that snippet. Of course, having a raw file on pastebin like Calvin's Hobbies suggested is a bit more convenient for copying or downloading the data. \$\endgroup\$ Jun 5, 2015 at 9:21

1 Answer 1


Host it elsewhere

And provide a link to where it is hosted.

Tons of sites let you do this for free. A very simple option is Pastebin.

Google docs, Github, and Dropbox are some other common options that come to mind. Though for those you'll need an account.

If you specifically want a download link, these kind of sites usually have an option for that (example). Though I'd advise against that here. I'd personally prefer to be directed to the raw text; I know how to download if I want to.

  • 5
    \$\begingroup\$ In the case of GitHub, I'd specifically recommend gists. That and Pastebin are probably the best options. Dropbox is a bit dodgy since it gives you a download link, and Google Docs seems a bit overkill for plaintext files. \$\endgroup\$ Jun 5, 2015 at 9:22
  • \$\begingroup\$ Thanks @MartinBüttner. I did what Calvin's Hobbies suggested. \$\endgroup\$
    – CJ Dennis
    Jun 5, 2015 at 9:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .