资源文件 [英] resource files
本文介绍了资源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨.
我想知道如何在运行时嵌入和提取文件吗?
我只希望在运行时那样.
谢谢.
Hi.
I want to know how can i embed and extract a file at runtime?
I want that at runtime only please.
Thanks.
推荐答案
向自己发布答案并不明智.好像有四个人在帮助您,所以我几乎没有打扰.另外,如果您按答案",为什么还要发布不是答案的内容?编辑您的帖子.
您可以将任何您喜欢的东西作为资源嵌入,它会作为数据的一滴存在.没有理由您无法将其加载到字节数组中并将其写入文件系统.
Posting answers to yourself is not smart. It looks like four people have helped you, so I almost didn''t bother looking. Also, if you press ''answer'', why would you post something that is not an answer ? Edit your post.
You can embed anything you like as a resource, and it will exist as a blob of data. There''s no reason you can''t then load it into a byte array and write it to the file system.
DreamsDotNet写道:
DreamsDotNet wrote:
我想知道如何在运行时嵌入和提取文件?
I want to know how can i embed and extract a file at runtime?
由于您的问题不太清楚,请尝试多解释一下您要实现的目标.
Please try and explain a bit more what you are trying to achieve, as your question is not very clear.
您是否在谈论加密文件内容.
Are you talking about encrypting the file content.
这篇关于资源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文