0

The file was compressed in c# with this code:

using (FileStream zipToOpen = new FileStream("myfile.gff", FileMode.Create))
{
    using (ZipArchive archive = new ZipArchive(zipToOpen, ZipArchiveMode.Create))
    {
        ZipArchiveEntry write_entry = archive.CreateEntry(GRALflowfield);
        using (BinaryWriter writer = new BinaryWriter(write_entry.Open()))
        {
          //writing 
        }
    }
 }

I know how to read binary in R, but i don't know which decompression should i use. I know that .gff is not important. I tried this, but it gives error back: error 1 in extracting from zip

zipF <- file.choose()
outDir<-paste(getwd(),"/open", sep="")
unzip(zipF , exdir = outDir) 
vrige
  • 297
  • 1
  • 9
  • 1
    Your C# code is writing a Zip Archive, so your question becomes [How to unzip and archive in R](https://stackoverflow.com/questions/33203800/unzip-a-zip-file) – MindSwipe Jun 05 '20 at 10:08
  • I tried it,but it gives error back: error 1 in extracting from zip – vrige Jun 05 '20 at 10:24

0 Answers0