- Регистрация
- 21.02.2012
- Сообщения
- 28
- Благодарностей
- 0
- Баллы
- 1
I'm creating a template which goes trough a list of websites and check if they are using a particular platform. I want each website from the list to be removed after successful execution of the template, so on the first step I get string 0 and don't remove it. In the end of the template I get this row from the file again and delete it. It is working fine this way but if I use more than 1 thread string 0 won't work and it can remove wrong website. Can someone suggest a solution.
Is it possible to get random line from file and than delete this particular line in other step?
Is it possible to get random line from file and than delete this particular line in other step?