include cstdio for remove()