usage of tmpnam() and tmpfile().