Quantcast
Channel: sharpcompress Discussions Rss Feed
Viewing all articles
Browse latest Browse all 239

New Post: How to OpenRead in WP 8.1

$
0
0
Dim fs As System.IO.Stream = ???OpenRead???("MyFolder/MyBuildActionContentFile.zip")
Dim archive = SharpCompress.Archive.ArchiveFactory.Open(fs)
For i As Integer = 0 To archive.Entries.Count - 1
   If Not archive.Entries(i).IsDirectory Then
       If archive.Entries(i).Key.Contains("TheFileImLookingFor.txt") Then
           Dim zipStream As System.IO.Stream = archive.Entries(i).OpenEntryStream
           Dim myStreamReader As New IO.StreamReader(zipStream)
           Return myStreamReader.ReadToEnd()
           Exit For
        End If
    End If
Next

Viewing all articles
Browse latest Browse all 239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>