1

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++ ?

Srivathsan
  • 600
  • 3
  • 9
  • 19
  • Possible duplicate of [Programmatically reading a web page](http://stackoverflow.com/questions/389069/programmatically-reading-a-web-page) – user4581301 Oct 21 '15 at 01:42

1 Answers1

1

I think what you want to do is to read a web page, so this thread contains the answer.

Community
  • 1
  • 1
Ahmad Al-Mahdi
  • 75
  • 1
  • 2
  • 8