سؤال

I am developing one application. I need to display the .txt file values in text box. so can any one tell me the codes to display the .txt file values in text box or data grid using c#?

هل كانت مفيدة؟

المحلول

Try this:

string fileTxt = File.ReadAllText(@"c:\.....");
textbox.Text = fileTxt;
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top