open takes as second parameter the name of the file to create. So, instead of giving it the hardcoded output.txt, give it a variable that holds the name of the file you want to create.
In reply to Re: matching options and create new file
by Corion
in thread matching options and create new file
by vis1982
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |