#include<iostream>
#include<fstream>
using namespace std;
int main()
{
int n=0;
int sum=0;
ifstream fin;
fin.open("input.txt");
for (int i=0; i<4; i++)
{
fin >> n;
sum=sum+n;
}
cout << "Sum of given numbers is " << sum << endl;
return 0;
}
in the above code, i want to fetch data from a url instead of local "input.txt" file, can i do that in c++?