0
我需要做的是這樣的文本文件資源名稱和文件內容:如何獲取所有
Private Sub SearchInResources(ByVal PatternSTR As String)
For Each ResourceFile In My.Resources ' Obviously this don't works
If ResourceFile.EndsWith(".txt") Then
Dim fileContent As String = ResourceFile
Dim stringStream As New System.IO.StringReader(fileContent)
If stringStream.contains(PatternSTR) Then
' Things...
End If
End If
Next
End Sub
我已經試過這種方法,但不爲我工作! :How to get the names of all resources in a resource file
謝謝評論 – ElektroStudios