Update input.cpp

it can download files and write the names to a text file now