Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Zipファイル内にファイルを作成することはできますか?
abc.zipファイルがあり、その中に という名前のファイルを作成したいとしましょうSomeFile.txt。出来ますか?[Zip ファイルの操作に役立つ dll Ionic.Zip を使用しています]。また、解凍せずにこれを行いたいです。
abc.zip
SomeFile.txt
もちろん。たとえば、すでに作成している場合SomeFile.txt:
using (var zip = ZipFile.Read("abc.zip")) { zip.AddFile("SomeFile.txt"); zip.Save(); }
.NETでのZipファイルの操作