开发者

divide and search for specific words

i have a text i want to divide it into equal 4 part and search for specific words that repeat in those part and display them

any ideas am working with c# vs 2开发者_StackOverflow中文版008 and .txt files


well, 4 equal parts can be done by taking string.length /4 and then taking substrings. you could then do a .find within each string.

alternately, you could take a look a regular expressions.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜