Given the information I have, I'd go with (1).
After the call to sub_func1 I have to modify the file by moving one line to another position in the file.
Nothing's stopping you from closing the file before you do this and reopening it afterwards.
But moving a line in a file you've just built? That sounds very fishy.
In reply to Re: Design/Style question about writing to a file from different functions
by ikegami
in thread Design/Style question about writing to a file from different functions
by Dirk80
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |