从http://打开文件,寻找HTTP客户端

问题描述:

你好!
对不起,英语不好,我是奥地利人.好的,这是我的问题:

我有一个小程序,可以从本地硬盘打开一个txt文件.现在,我想从Web服务器中打开一个txt文件,并将其放在控制台窗口中.但是如何打开文件?

这不起作用:

Hello!
Sorry for may bad English, I''m an Austrian. Ok here is my question:

I have a little program which opens a txt file from my local hard disk. Now I want to open a txt file from my web server and put it out in the console window. But how can I open the file ?

This doesn''t work:

ptr = fopen("\\http://king.ath.cx//server.txt" ,"r+");
if(ptr == NULL) {
 printf("\nfopen error\n");
 getchar();
}


Alex


Alex

这是C语言,没有任何内置于网络中的核心语言.我怀疑甚至还有插件,您都需要C ++.
This is C, there''s nothing built in to the core language that anticipates the web. I doubt there''s even add ins, you''d need C++ for that.


好,谢谢
但我只能写成C
lg
亚历克斯
ok thx
but I''m only able to write into C
lg
Alex