IMHO there is no 'right way' or 'wrong way'. It all depends on the goal you wish to achive. If this works for you, go ahead.
One thing you should be aware of, is the race condition you are introducing: what is someone edits the file after you read it, and before you stumble over it? You should introduce some kind of locking mechanism to be sure you get it right!
Cheers,
Paul
In reply to Re: existing file is modified or not
by rev_1318
in thread existing file is modified or not
by Madam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |