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