How totake a line form a file without deleting a string?

bambinou

Client
Регистрация
22.08.2011
Сообщения
437
Благодарностей
21
Баллы
18
Hello,

How can you use names that comes in oder in a file without deleted the last one?

{-File.GetString-|-\Resources\-|-0-|-false-}

I find it a bit annoying to always delete the last one especially when you work with many files.

Thank you,


BamBam
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
You would have to put a loop in there and a counter. You would use Files and directories, get number of strings in file. You would then check this against your counter and step out of the loop when the counter was one less the number of strings in the file.
 
  • Спасибо
Реакции: bambinou

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
834
Баллы
113
1) Take a count of lines form file {-File.CountOfStrings-|-\Resources\filename.txt-}
2) set counter value {-Counter.Set-|-count1-|-0-}
3) set logic operation if count1 < count of lines
4) (if YES) use line from file with number count1
5) increase counter's value {-Counter.Add-|-count1-|-1-}
6) go to 3
7) if NO = all lines are read
 
  • Спасибо
Реакции: bambinou

bambinou

Client
Регистрация
22.08.2011
Сообщения
437
Благодарностей
21
Баллы
18
Thank you very much for your great help, you have both earned a little "Thank" ;-)
 

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