使用位于项目下的文件? [英] Using files that are located under the project?

查看:104
本文介绍了使用位于项目下的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个文件,比如说File1.BMP和File2.TXT,它们要写在硬盘上.我如何访问项目中包含的那些文件?我希望将这两个文件编译为可执行文件,并在应用程序中的特定位置将其解压缩.

我曾尝试环顾四周,但没有发现太多.

在此先感谢您.

I have a two files lets say File1.BMP and File2.TXT which i want to write on the hard drive. How do i access those files that are included the project? I am looking to have these two files to be compiled into the executable and be extracted at a certain point in my application.

I''ve tried looking around but have not found that much.

Thank you in advance.

推荐答案

看看我对rotter512的回复...

将文件添加为资源后并编译应用程序,这是小菜一碟,可在运行时将其提取出来.

Look at my reply to rotter512...

Once you add the files as resources and compile the app, it''s a piece of cake to extract them at runtime.


这篇关于使用位于项目下的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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