Even Windows has %appdata% which is where you put stuff on disk that you need to stash away. There's also function calls iirc which will give you a handle to a temporary file if you need it.
Also I still find it funny that OpenSSH client shipped via feature uses %HOMEDIR%\.ssh