我有一些文件,这些文件中嵌入的资源。我怎样才能节省磁盘这些文件通过C#?
I have some files, which are embedded in a resource. How can I save these files on disk via C#?
使用流:GetManifestResourceStream给你一个流中的资源文件,使用的StreamWriter,你可以写流的内容到磁盘
using streams: GetManifestResourceStream gives you a stream to the file in the resource and using a StreamWriter you can write the contents of that stream to disk.