System.IO
protected string[] GetStopWords()
{
using (StreamReader reader = new StreamReader(Server.MapPath("~" + "\\App_Data\\stopwords.txt")))
{
string words = reader.ReadToEnd();
return words.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
}
}string[] s = GetStopWords();
for (int i = 0; i < s.Length;i++ )
{
Response.Write(s[i]+"<br/>");
}
for (int i = 0; i < s.Length;i++ )
{
Response.Write(s[i]+"<br/>");
}
