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; was resuming from the correct position but had problem merging with the downloaded part. 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.