sowjanyagadela wrote:
It was copied whole content of file.... but i want some part text only
Well, you DID call File.Copy. Yo don't need a memory stream. You need File.ReadAlllines or File.ReadAllBytes to read the whole file in memory, then you need to parse the file to find the bits you want to copy, then you can use a similar overload to write the new file fragment.