Pyth, 4 + 11 = 15 bytes
jk'z
With URL http://v.ht
as input. Takes an URL string as input, downloads the file, and prints its content.
Explanation:
jk'z
z Get the input string (URL)
' Download the file from the URL, return a list of lines
jk Join the list on k which is the empty string
Note that we cannot use the function s
for concatenating the list because of bytes types issues.
Slightly cheating, 2 + 11 = 13 bytes (it displays the list of the lines in the file instead of a single string for the whole file):
'z
You will need to install Pyth on your machine to test it (the online interpreter does not execute unsafe operations).