How to add a counter and pick the lne below the last one

  • Автор темы Автор темы bambinou
  • Дата начала Дата начала

bambinou

Client
Регистрация
22.08.2011
Сообщения
442
Реакции
21
Баллы
18
Hi,

When you use the macro File.GetString and do not choose the "remove string" to true, the same line is always picked up, is there a way to add acounter and an increment of 1 in order to have zenno to always pick the next one?


I tried it add:

step1:
{-Counter.Get-|-count1-}

step2:
{-Counter.Add-|-count1-|-1-}

step3:
{-File.GetBlock-|-\Resources\website\combined.txt-|-************************************************************************-|-0-|-false-}

this file holds all my emails as a .txt file with delimiters. No problem when it is done via a true statement but I am annoyed to delete all the the urls all the time.

Please help,


Thank you,


BamBam
 
Код:
Развернуть Свернуть Копировать
step1: {-Counter.Add-|-count1-|-1-}
step2: {-File.GetBlock-|-\Resources\website\combined.txt-|-************************************************** **********************-|-{-Counter.Get-|-count1-}-|-false-}
 
Do a "count lines in the file" first...

Use that execution as your number of lines...

Use the counter portion after this
 
Nice!

Thanks guys, I did not know we could count the number of lines,, excellent!

BamBam
 

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