- Регистрация
- 16.09.2011
- Сообщения
- 365
- Благодарностей
- 10
- Баллы
- 18
So I have projects which multuthread by taking line from file then putting back if there is an error.
I make it repeat till x amount of successes and project finishes.
I want to run every 2 hours but the problem is on repeat runs often there are leftover lines from the old run so it messes up the new run.
I currently have it delete the old file if its empty and/or if no file copy account file master to temp.
So it wont do that if there are lines leftover.
So how can I make it delete if there are still leftovers? I am thinking i could setup global variable active thing agian but that is so complex to mess around with is tehre antoehr way around this issue? Was quite hard to exaplin so i can give more clarification if needed
I make it repeat till x amount of successes and project finishes.
I want to run every 2 hours but the problem is on repeat runs often there are leftover lines from the old run so it messes up the new run.
I currently have it delete the old file if its empty and/or if no file copy account file master to temp.
So it wont do that if there are lines leftover.
So how can I make it delete if there are still leftovers? I am thinking i could setup global variable active thing agian but that is so complex to mess around with is tehre antoehr way around this issue? Was quite hard to exaplin so i can give more clarification if needed