Creating an "Accounts" file

muchink

Client
Регистрация
28.07.2012
Сообщения
193
Благодарностей
6
Баллы
18
Hi!
I'm attempting to create a template for wordpress and to save the account&password using the "write to file" to a txt file named accounts.txt
It all goes well but the problem is when I'm using multithreading, it blocks other threads to save to the file since other thread is using it,
and until he finishes, the other threads give me an error and don't save the details of the account.

I've also tried list proccessing but it also created me some sort of a problem when I'm trying to save the list to a file in multithreading..

Does anyone know how to solve it while still using 1 file for the accounts?
Thanks!
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113

muchink

Client
Регистрация
28.07.2012
Сообщения
193
Благодарностей
6
Баллы
18
Hi!
I have tried to use it, but it's the same as what I use that causes problems in the multithreading..
I have also tried using list processing but with it, each thread overwrites the other threads..

Do you know of any solution to this?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
You don't need to save to file.
You just need to use add line action in list processing.
And in settings of list you have to check "save changes"
 

muchink

Client
Регистрация
28.07.2012
Сообщения
193
Благодарностей
6
Баллы
18
Thanks! that worked ! :-)
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113

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