(PHP 5 >= 5.1.2)
The SplTempFileObject class offers an object oriented interface for a temporary file.