Line by Line - Pulling lines in sequence from a text file ?

gcomm

Client
Регистрация
01.03.2011
Сообщения
332
Благодарностей
93
Баллы
28
Instead of this {-File.GetString-|-\Resources\-|-random-|-false-} which gets random lines; The objective is to start at 0 or 1 and continue until the end of file or end of project loop - is there a macro solution ?

I suppose using :
{-File.CountOfStrings-|-C:\zenno\template\test.txt-}


Combined with a counter of some sort is the answer ? Anyone got this one handy :confused:
 

Stereomike

Client
Регистрация
29.03.2011
Сообщения
221
Благодарностей
30
Баллы
0
Make a backup of the file and then do this:
{-File.GetString-|-\Resources\-|-0-|-true-}
It'll take the first line.
In the next loop cycle(you'll have to do one) it will take again line 0 - it will do it till it has effectivley deleted the file (taken the last line).
So you'll loose this file, but of course you saved a backup before :-)
 

shinigami

Client
Регистрация
01.05.2011
Сообщения
164
Благодарностей
91
Баллы
0
simple loop does the trick for you.
 

Вложения

  • 1,1 КБ Просмотры: 250

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