note that the example is no more than very simple one.
use truly temporary file