public int Run() { using (var writer = new ArchiveWriter("test_archive.pak", false)) { writer.Compress(Assembly.GetExecutingAssembly(), "examples.Resources.lorem_ipsum.txt", "lorem_ipsum.txt"); } using (var reader = new ArchiveReader("test_archive.pak")) { var file = reader.GetFile("lorem_ipsum.txt"); var data = reader.Decompress(file); string content = Encoding.ASCII.GetString(data); Console.WriteLine(content); } return(0); }