Add to lines

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

crabstix

Client
Регистрация
06.02.2011
Сообщения
17
Реакции
0
Баллы
0
I have a list of values extracted from a webpage like:

parta
partb
partc

and I need to add some characters (same for each line) at the end of each line before I write it to file.

How do I add these extra characters to each line?
 
I am not sure what you are saying.

I have tried string.replace using \r \n as the string to be replaced. For the string to replace old values I tried extrachars \r \n
But this did not work.

Can you help with an example for dummies like me.

Edit - Thanks step85. I now understand and it's all working.
 

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