I am currently working on a prgram for Linux which downloads data from a webserver. I achieved this with system("wget <url etc...>")
and it seems to work fine as it just gets the job done.
However I read that calling wget
through a system call is considered bad practice and you should instead use a library like libcurl. But I don't understand why writing 10 to 15 lines (in libcurl) of code to download a file is better than a single line of wget with the same result.