Looping through txt files

Tricyclethief

Client
Регистрация
10.02.2011
Сообщения
21
Благодарностей
0
Баллы
0
Is there a way to make a template loop through a file full of email addresses until it runs out?

For example: I have a file full of emails. I want to use those emails to create accounts to mixx.com. I don't know how many emails are in the file. How do I make it loop through the file and stop when it reaches the end?

Thanks.
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
There're few ways how you can get it. 1st one just remove line from file, when you got it.
And it's easier then other.
 

step85

Client
Регистрация
19.02.2010
Сообщения
1 839
Благодарностей
287
Баллы
83

Tricyclethief

Client
Регистрация
10.02.2011
Сообщения
21
Благодарностей
0
Баллы
0
The problem is that I don't want to have to check the length of the file before I run the template every time. Right now, I am about to try to just remove one line from the file every time I use an email. Is there a way to stop the template from running when it runs out of lines in the file?
 

step85

Client
Регистрация
19.02.2010
Сообщения
1 839
Благодарностей
287
Баллы
83

Tricyclethief

Client
Регистрация
10.02.2011
Сообщения
21
Благодарностей
0
Баллы
0
Thanks. I will work on this when I get home.
 

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