Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Dim embeddedFileName As String = "MyResources.resx"
  2. Dim targetFilePath As String = "C:NewMyResources.resx"
  3. Using s As Stream = assembly.GetManifestResourceStream(embeddedFileName)
  4. Dim buffer As Byte() = New Byte(CInt(s.Length - 1)) {}
  5. Dim read As Integer = s.Read(buffer, 0, CInt(s.Length))
  6. Using fs As New FileStream(targetFilePath, FileMode.Create)
  7. fs.Write(buffer, 0, buffer.Length)
  8. End Using
  9. End Using
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement