in reply to Re^2: using the system command
in thread using the system command

So you neither want to override the files, nor do you want to preserve them. What do you want?

and it is a long file so i cannot generate hundreds of files

Uhm, why not? A decent computer can handle hundreds of long files, whatever that means.

If disc space is an issue, you could compress the files after they are generated. Or extract the information you want from them, and then delete them.