I'm not sure if it's possible. I usually create txt files like this:
FileStream fs = new FileStream("c:\\textFile.txt", FileMode.Append, FileAccess.Write);
StreamWriter sw = new StreamWriter(fs);
but instead of using "c:\textFile.txt" I want to create a file using a string name. Is there a way to do it?
new FileStream(myVariable, FileMode.Append, FileAccess.Write);