Did you already know the methods Path.GetTempPath() and Path.GetTempFileName() in the System.IO namespace.
The very useful method GetTempFileName() creates a temporary file for you in a location you have write access. You then can write temporary data to this file.