任何人都知道如何阅读Epub 文件并能够搜索和定位标签?我正在使用 VB.Net,但我不知道如何阅读 EPub。
或者只是帮我解压缩或提取某个文件
这些是我的代码
Dim ZipToUnpack As String = txtPath.Text
Dim TargetDir As String = txtTXT.Text
Console.WriteLine("Extracting file {0} to {1}", ZipToUnpack, TargetDir)
Using zip1 As ZipFile = ZipFile.Read(ZipToUnpack)
'AddHandler zip1.ExtractProgress, AddressOf MyExtractProgress
Dim a As ZipEntry
For Each a In zip1
a.Extract(TargetDir, ExtractExistingFileAction.OverwriteSilently)
Next
MsgBox("Done")
getFiles()
End Using
For j As Integer = 0 To ListView1.Items.Count - 1
Dim k As StreamReader = New StreamReader(New FileStream(Path.Combine(ListView1.Items(j).Tag, ListView1.Items(j).Text), FileMode.Open, FileAccess.Read, FileShare.Read))
k.ReadLine()
你能帮我下一步如何阅读所有的html并计算img标签吗