I want to use StreamWriter to write a file to the temp folder.
StreamWriter
It might be a different path on each PC, so I tried using %temp%\\SaveFile.txt
%temp%\\SaveFile.txt
string result = Path.GetTempPath();
https://docs.microsoft.com/en-us/dotnet/api/system.io.path.gettemppath