Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How do i write the user input from my form into text file
Rohit pandarkar
Jun 13 2014 6:06 AM
900
Reply
i want the text file created by this code to send to server by using mail as i provided email code in my CS file
i used following code but its not enough
using (StreamWriter sw = new StreamWriter(@"D:\text.txt"))
{
sw.WriteLine("Name = " + txt_name.Text);
sw.WriteLine("Address = " + txt_ContctNo.Text);
}
using this it doesnt create new text file .manually u have to create it first
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
read an xml and write data into database table
operators