TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ta mu
NA
201
82.2k
data writing from multiple controls in same file
Aug 9 2012 1:51 PM
dear i have this code
StreamWriter stname = new StreamWriter("d:\\abc.text");
string text = t11.Text;
stname.WriteLine(text);
stname.Close();
StreamWriter stno = new StreamWriter("d:\\abc.text");
string no = lpnu1.Text;
stno.WriteLine(no);
stno.Close();
but in output file only no is written there is no name .but if i remove stno streamwriter then it writes name.
how i can write both name and no in same file.both these are on button click event. i not know much c#.
Reply
Answers (
6
)
Is there a way to have visual studio make a list of routines that run and the time they took?
error in connecting database