C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




about coding


Posted Date: 25 Jul 2008      Total Responses: 5

Posted By: rama       Member Level: Bronze     Points: 1



StreamWriter writer = new StreamWriter(@"c:\sample.text"); writer.WriteLine(txtFirst.Text); writer.WriteLine(txtSecond.Text); writer.Close();
where txtFirst and txtSecond are your 2 textboxes.

Which namespace is used for the above code





Responses

Author: balamurugan    25 Jul 2008Member Level: GoldRating:     Points: 0

hi,

u use this namespace

imports system.io



Author: muralidhar    25 Jul 2008Member Level: GoldRating:     Points: 1

hai,

use the following Namespace
using System.IO;

regards,
Muralidhar.



Author: Shivshanker Cheral    25 Jul 2008Member Level: DiamondRating:     Points: 0

Include the system IO namespace using this statement


using System.IO;




Note:
If this has answered your query, don't forget to rate this post.



Author: rama    25 Jul 2008Member Level: BronzeRating:     Points: 5

Hi,

In submit Button I Wrote this code and also added namespace System.io
streamwriter sw = new streamwriter(@"c:\storeintextfile.txt");

sw.writeline(txtStuName1.Text);
sw.writeline(txtStuNo.Text);
sw.writeline(txtAdd.Text);
sw.writeline(txtdob.Text);
sw.writeline(txtDes.Text);

but it gives the same error like

are you missing a using directive or an assembly reference?



Author: Subodh kumar Prajapati    25 Jul 2008Member Level: GoldRating:     Points: 0

Hi,
use this name space:

using System.IO;



Post Reply
You must Sign In to post a response.
Next : Download in asp.net with C# coding?
Previous : How to encrypt and decrypt password
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use