How to append line to file & attach a prefix?

BB1

Client
Регистрация
12.05.2011
Сообщения
18
Благодарностей
1
Баллы
3
Hi,

Im trying to add a scraped list to a file, which i can do no problem, but would like to add the same prefix to each line if possible?

Thanks
 

step85

Client
Регистрация
19.02.2010
Сообщения
1 839
Благодарностей
287
Баллы
83

BB1

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

Yeah thats great thanks, if i just need the prefix, how could i achieve that? e.g. [tag]myline not [tag]myline[tag]

I dont know any javascript so not sure what to change?

Thanks for your help
 
  • Спасибо
Реакции: LightWood

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
682
Баллы
113
Or you can use counters if you can't figure out the Javascript:

Код:
http://zennolab.com/discussion/showthread.php?2322-Most-elegant-way-to-parse-this-kind-of-page
 

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