Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim bytes() As Byte = File.ReadAllBytes(filePath)
- ' Modify and resize the bytes array
- File.WriteAllBytes(filePath)
- Using input As New FileStream(inputFilePath, FileMode.Open)
- Using output As New FileStream(tempFilePath, FileMode.Create)
- Dim bytes(lengthOfMp3Record) As Byte
- Dim totalRead As Integer = 0
- Do
- totalRead = input.Read(bytes, 0, bytes.Length)
- If (totalRead <> 0) AndAlso (KeepMp3record(bytes)) Then
- output.Write(bytes, 0, totalRead)
- End If
- Loop While totalRead <> 0
- End Using
- End Using
- File.Delete(inputFilePath)
- File.Move(tempFilePath, inputFilePath)
Add Comment
Please, Sign In to add comment