从http://打开文件,寻找HTTP客户端 [英] Open file from http://, looking for HTTP client

查看:238
本文介绍了从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


这篇关于从http://打开文件,寻找HTTP客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆