I am creating a file using XmlWriter, XmlWriter writer = XmlWriter.Create(fileName); it creates a file, and then I have another function that I call private void EncryptFile(string inputFile, string outputFile) that takes 2 string inputs and outpulfile, and in the end I have two files: encrypted and the other not. I just want one encrypted file, but my encryption function requires an input file that is created by XmlWriter. Is there a way to create a memystream and pass this to my function instead of creating an input file. my encryption function
private void EncryptFile (string inputFile, string outputFile) string password = @"fdds";
SoftwareDeveloper
source share