I am pretty new to file handling in C++. So I was wondering if it is possible to access or edit an online text file using C++. Like is it possible to open a file like the following :
#include<iostream>
#include<fstream>
using namespace std;
int main(){
fstream one("http://xproweb.in/sri.txt");
char a[20];
one>>a;
cout<<a;
return 0;
}
Or is there any other way that I could access online files in C++ ?