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
System.IO.Path.GetTempPath()
The path specified by the TMP environment variable. The path specified by the TEMP environment variable. The path specified by the USERPROFILE environment variable. The Windows directory.
TMP
TEMP
USERPROFILE