开发者

How to find all strings from a list of strings that do NOT appear in any of my source files?

I've got a 开发者_StackOverflowbit of a messy DB. There are a lot of stored procedures that I strongly suspect are not used. I can easily get all their names in a text file, one name per line. Now I would like to search all through my code files to find which ones are mentioned and, more importantly, which ones are not.

How could I do such a thing? I'm using Windows 7, Visual Studio 2008 - if it matters.


Write your own small app (console app would do).
read your file, get the procedure-names inside a list, and then for each name search your code file, and log the name if you did not find the nam einside your code-files.

See System.IO.FileStream class for the easy (but not that fast) way of search a file.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜