Example showing temp file management