我對C++中的文件處理很新穎。所以我想知道是否可以使用C++訪問或編輯在線文本文件。就像是有可能打開如下所示的文件:使用C++編輯在線文件
#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;
}
或者是有,我可以訪問C++在線文件的任何其他方式?
可能出現[以編程方式閱讀網頁]的重複(http://stackoverflow.com/questions/389069/programmatically-reading-a-web-page) – user4581301