Perl 6, 13 bytes
putsay sum lines Explanation
lines()returns a list of lines from$*INor$*ARGFILESa “magic” command-line input handle.sum(…)was added to Perl 6 to allow[+] Listto be optimized for Positionals that can calculate their sum without generating all of their values like1..100000
(I just thoughtsumwas just too cute here to use[+]like I normally would)say(…)call the.gistmethod on its input, and prints it with an additional newline.