I need to write contents of a file to another file using File.OpenRead and File.OpenWrite methods. I am unable to figure out how to do it.
How can i modify the follo
Is it necessary to us FileStream? Because you can do this very easily with simple File Class like;
using System.IO; string FileContent = File.ReadAllText(FilePathWhoseTextYouWantToCopy); File.WriteAllText(FilePathToWhomYouWantToPasteTheText,FileContent);