<br clear="all">HI <br>I am a corpus linguistics student and learning C# for this purpose as well. I've created a simple application to find the frequency of a given word in two files. Actually this simple application is a practice version in C# of a Perl script a respected subscriber of this list (Alexander Schutz) written for me on my request on this list. I needed it then, now I am trying to programm myself so I tried to implement that idea in C#.<br>
I have done that all and it works also but it does not give me 100% frequency of the word as the Perl script does. What I've done is that the application takes three files as input. 1 wordlist which it reads line by line and stores in an array. other two are simple text files which are splitted by c# String.Split() method. I've used an array of characters like ';', ',' etc. The resulting string array was cleaned from such characters but I couldn't get the 100% result. The frequency of most words are less than that of Perl script (which does the same thing). After trying myself I am requesting here if someone can help me. I am attaching both files (Perl script and C# .cs file) so you can examine the code and point out where I am wrong.<br>
Regards<br>-- <br>Muhammad Shakir Aziz محمد شاکر عزیز<br>