开发者

Scanning a string line by line

开发者 https://www.devze.com 2023-01-10 07:51 出处:网络
I have an nsstring with 50 of lines i want to scan a pa开发者_JAVA百科rticular string using nsscanner scanningeach lines.

I have an nsstring with 50 of lines i want to scan a pa开发者_JAVA百科rticular string using nsscanner scanning each lines.

Is it possible ?

Can anyone help me?

Thanks in advance......


It is possible; you just need to split the string, and then scan each line for the string you are looking for.

Why are you using NSScanner? Would not it be easier to simply search for the string?

0

精彩评论

暂无评论...
验证码 换一张
取 消