在MFC C ++中打开并读取文件 [英] Open and read file in MFC C++

查看:106
本文介绍了在MFC C ++中打开并读取文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!



如何在MFC / C ++应用程序中以完整路径打开txt文件?我还需要在Edit Control中打开并读取此文件。有人可以帮帮我吗?

Hello everyone!

How can I can open txt file by its full path in MFC/C++ applications? I also need to open and read this file in Edit Control. Can anybody help me, please?

推荐答案

您可以使用 CStdioFile [ ^ ]或 CFile [ ^ ]类。你可能会发现很多代码示例 [ ^ ]。
You may use either the CStdioFile[^] or the CFile[^] class. you may find a lot of code samples[^] on the web.


这篇关于在MFC C ++中打开并读取文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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