Changing content in Embedded Resources file
问题 I want to change the content of a file loaded as a Stream from an embedded resource. The following code gets the file: Stream theFile = Assembly.GetExecutingAssembly().GetManifestResourceStream("_3LinksFourmTool.Resources.fourmlinks.txt"); I created a method that takes a string of text that is present in the Stream provided. The string is rewritten to the Stream with the new content. public static void WriteNewTextToFile(string text, Stream theFile) { string fileText = GetAllTextFromFile