Where should a plugin create temporary files I have a plugin which needs to create a temporary file. Where should I put it?
PathService has a getTempPath() method which will return the craft/storage/runtime/temp path by default.

Craft uses that for its temporary files and so can plugins.  Just make sure youre plugin is being defensive by giving it a unique filename or create a folder with a unique name and put your files in there, etc.