load string int text box from txt file ? any one know ? please help
Hi
i would like to load text box from txt file .
do you know solution to do it ?
I already created the button ( for loading and have text box) how can i do this ? lets say i have inside txt file .
name
secondname
how can i load it inside text box little program?
Re: load string int text box from txt file ? any one know ? please help
I'm assuming by the title you meant "Load string into text box from text file..."
This is pretty simple, you want this in a textbox, but I see multiple lines here, so i'm assuming multiline is set to true.
Note:
Code:
textBox1.Text = File.ReadAllText("FilePathGoesHere");
Or... just:
Code:
textBox1.Text = System.IO.File.ReadAllText("FilePathGoesHere");