Вопрос

How do I search for a string in a text file line. And if found save it as a string variable... I need an example if possible. I have tried to do it but couldn't do it. I can't post what I have tried because I'm stupid and deleted it. Any help is appreciated. Thanks in advance! :)

Это было полезно?

Решение

I know this page thats explain how search for a specific string and return whole line.

Its can help you...

See the link:

Text file parsing - how can I search for a specific string and return whole line?

Thaks.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top