sir, i have read txt file in textbox but i could not get full content in the text box...how i can get full content in text box while reading file....
string filestring = File.ReadAllText(@"C:\\Documents and Settings\\EGC\\Desktop\\onto222a.txt");
Dictionary<string, int> words = new Dictionary<string, int>();
string[] split = filestring.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
foreach (string word in split)
{
if (words.ContainsKey(word))
words[word]++;
else
words.Add(word, 1);
}
foreach (KeyValuePair<string, int> pair in words)
{
string ss = pair.Key + "=" + pair.Value;
TextBox2.Text = ss;
//Response.Write(ss);
// Response.Write(",");
}
}
-------------------------------------------------------------------------------------------------------------------------
i want to disply full content in textbox2.text but i didnt get through the above code....but i can get full content using response.write statement...