Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim embeddedFileName As String = "MyResources.resx"
- Dim targetFilePath As String = "C:NewMyResources.resx"
- Using s As Stream = assembly.GetManifestResourceStream(embeddedFileName)
- Dim buffer As Byte() = New Byte(CInt(s.Length - 1)) {}
- Dim read As Integer = s.Read(buffer, 0, CInt(s.Length))
- Using fs As New FileStream(targetFilePath, FileMode.Create)
- fs.Write(buffer, 0, buffer.Length)
- End Using
- End Using
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement