⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_44226.htm

📁 vc
💻 HTM
字号:
<p>
序号:44226 发表者:sensen 发表日期:2003-06-17 16:50:31
<br>主题:怎么样读取网络上的一个txt文档的内容???
<br>内容:比如将 http://www.otcjournal.com/ticker.txt&nbsp;&nbsp;文档中的内容读到MFC的EDIT中,怎么做呢???&nbsp;&nbsp; <BR>最好是有源程序的,可以发到我的邮箱中<BR>chen_sen_333@163.net
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:信笺 回复日期:2003-06-18 20:56:52
<br>内容:CInternetFile *internet_fp=NULL;<BR>CInternetSession* internet;<BR>internet=new CInternetSession(NULL,1,dwAccessType,NULL,NULL,0);<BR>internet_fp=(CInternetFile *)internet-&gt;OpenURL(http://www.otcjournal.com/ticker.txt);<BR>CString text;<BR>if(internet_fp)<BR>{<BR>CString temp;<BR>while(internet_fp-&gt;ReadString(temp))<BR>{<BR>text=text+temp;<BR>}<BR>}
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -