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

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

bambinou

Client
Регистрация
22.08.2011
Сообщения
442
Реакции
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
 
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
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
Thank you very much for your great help, you have both earned a little "Thank" ;-)
 

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