Whether the errors will occur when open the same txt file at the same time?

hsupowers

Client
Регистрация
26.12.2012
Сообщения
40
Благодарностей
3
Баллы
8
im a newbie, i have two templates for one txt file. one template add info line to the txt file, the other delete info line from the txt file.

When the two templates are running at the same time, whether the errors will occur because may open the txt file at the same time?

PS. because they are continuous running, i am sure it is going to happen!
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
You should use lists for this. In both templates you set path to you file within list's settings. And check "load from file" and "save changes".

Then you use list processing - take or add line. File will be synced.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)