Click here to Skip to main content
15,917,538 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to update text data from text file without changing entire data
as a text file is already exists and i want to update the text data without changing entire data
and for this i don't have any code..
so please help me to update TEXT data
Posted
Updated 10-Apr-13 23:06pm
v3
Comments
IND-CODENAME-47 10-Apr-13 2:40am    
What do u mean my TEXT data... is it a textbox that u want to update from text file.
shashank 1068 10-Apr-13 2:48am    
yup it is a textbox that i want to upddate

 
Share this answer
 
Its very simple. u need to specify the path and using streamreader u can read the entire content from the file and display it in your text box.

StreamReader reader = new Streamreader();
textbox.text = reader.readtoend(path of your textfile");
 
Share this answer
 
Comments
shashank 1068 10-Apr-13 9:24am    
i want code in VB.NET and this code is not working :(
shashank 1068 11-Apr-13 5:07am    
i want to update text data from text file without changing entire data
as a text file is already exists and i want to update the text data without changing entire data
and for this i don't have any code..
so please help me to update TEXT data

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900