Help with importing text file line by line

vman2k9

Client
Регистрация
22.04.2011
Сообщения
10
Благодарностей
1
Баллы
1
Hey,

I am currently trying to import a text file line by line from line 1 > to the end of the file.

How can this be achieved? - at the minute i am using random with take a line from the file macro

Many Thanks,
Lewis.
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
834
Баллы
113
Hi there, Lewis.
I have to notice that you can take all lines together if you need it using File.GetBlock.
If you need exactly line by line you had better use a loop:
1) Give the number of lines which contains into file File.CountOfStrings
2) Initialize counter Counter.Set
3) If counter < number of lines then
a. Take line with number as counter number using Counter.Get and File.GetString
b. increase counter using Counter.Add
go to 3)
 

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