I'm making a downloader using C#, i want to add a feature of Pause & Resume download, i googled & implemented the suggestions but it didn't work for me meaning it started the download from the correct position but its not merging the existing file correctly, i tested it by downloading a video file but after pausing the download & starting it again the result file played for while (it played the portion which it downloaded before pausing but not the portion after pausing).
How can i merge the 2 portions successfully.