Hello everyone here!
I hope I will enjoy using the forum!
OK my first post is a VB.NET request since I am confused at here.
I just found a code snippet in MSDN which convert an input file to an output (ZIP GZ) file.
It should be OK but I cannot figure it so it can accept multiple files as input and give me one single ZIP GZ output!
Maybe a pro can help me!
I hope I will enjoy using the forum!
OK my first post is a VB.NET request since I am confused at here.
I just found a code snippet in MSDN which convert an input file to an output (ZIP GZ) file.
It should be OK but I cannot figure it so it can accept multiple files as input and give me one single ZIP GZ output!
Maybe a pro can help me!
Code:
Dim SourceFile As FileStream = File.OpenRead(InPath)
Dim DestinationFile As FileStream = File.Create(OutPath)
Dim Buffer(SourceFile.Length) As Byte
SourceFile.Read(Buffer, 0, Buffer.Length)
Using Output As New GZipStream(DestinationFile, CompressionMode.Compress)
Output.Write(Buffer, 0, Buffer.Length)
End Using
SourceFile.Close()
DestinationFile.Close()