Bootsie123 - 1 year ago 79
C# Question

# How do I write text from one file to another after modification in C#?

If I have a .txt file with

Hello, @@. @@ how are you doing?

how could I copy this from the .txt file and then paste it into another one but replace the "@@"'s with the string.

``````string text = System.IO.File.ReadAllText(@"E:\test\a.txt");