How can I copy an MP3 file that is embedded in my .exe file out to a file?
Ive managed to copy it to a stream from the resources, but Im confused as to how to write it to the file now. Ive copied it to a stream using the following code,
Dim assm As [Assembly] = [Assembly].GetExecutingAssembly
Dim str As Stream
Dim strResourceName As String = "Project.TRK0" & intTrackNumber & ".mp3"
str = assm.GetManifestResourceStream(strResourceName)
but Im now struggling to copy it out to a file now.
Thanks for any help!
Ive managed to copy it to a stream from the resources, but Im confused as to how to write it to the file now. Ive copied it to a stream using the following code,
Dim assm As [Assembly] = [Assembly].GetExecutingAssembly
Dim str As Stream
Dim strResourceName As String = "Project.TRK0" & intTrackNumber & ".mp3"
str = assm.GetManifestResourceStream(strResourceName)
but Im now struggling to copy it out to a file now.
Thanks for any help!