Click here to Skip to main content
14,271,826 members
Rate this:
Please Sign up or sign in to vote.
See more:
i need to read the .txt file and i have to display that value in text box.


hai dudes............
help me.........
how can its possible.............
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 1

1. read the text file into a string.
2. set the string into the TextBox.Text[^] property.

Which part of this are you having difficulty with?
   
Rate this:
Please Sign up or sign in to vote.

Solution 3

If the entire text from the file is to be displayed in the TextBox, then following method can be used
TextBox1.Text = System.IO.File.ReadAllText(fileName);
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

   
v2
Rate this:
Please Sign up or sign in to vote.

Solution 4

Here is the link for you
Google[^]

Do simple search in CP/google before posting Question
--RA
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100