Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
How do i write the user input from my form into text file
Rohit pandarkar
10y
910
1
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
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
read an xml and write data into database table
operators