I know I can call system("curl path-LJO") from a c++ program to download a file and save it in the current directory and then I can use the STL to save it to a std::string. But is there a way to save it directly in a std::string? I know abot https://github.com/curl/curl but I was wondering: is any specifier in the curl command that does that? If not, what would be the best way to approach this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…