Question How can I Split Two Merged Files

sinaone1

Member
Joined
Nov 26, 2011
Messages
10
Programming Experience
5-10
hi
i merged two files in a file
VB.NET:
        '=================================
        'Merge Two File in a File
        My.Computer.FileSystem.WriteAllBytes("e:\a.jpg", My.Computer.FileSystem.ReadAllBytes("Penguins.jpg"), True)
        My.Computer.FileSystem.WriteAllBytes("e:\a.jpg", My.Computer.FileSystem.ReadAllBytes("One Republic.mpg"), True)
        '=================================
now , how i can split this Merged Files
Thanx
 
You can only do so if there's some sort of marker that shows the end of one file or the start of another (or the length of at least one of the files). You'd read the contents of the file in and then find where that marker appears. For example mp3 files start with ID3. Everything after that is considered part of the mpeg file.
 
Back
Top