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 !




I want to store value in Notepad through C# code


Posted Date: 26 Mar 2008      Total Responses: 2

Posted By: Mayuri       Member Level: Silver     Points: 2


I want to store value in Notepade through C# code



Responses

Author: Mohan Kumar    26 Mar 2008Member Level: DiamondRating:     Points: 2
hi,

You can not store the value in Notepad, instead of you can wite the value as a text file.


-Mohan


Author: Tamilarasan    26 Mar 2008Member Level: SilverRating:     Points: 2
Hi,

StreamWriter sw = new StreamWriter("D://Sample.txt");
string result = "";

DataSet dsGetResult = new DataSet();

//Write Code to Bind data with DataSet(dsGetResult)

for (i = 0; i <dsGetResult.Tables[0].Rows.Count; i++)
{
for (j = 0; j < dsGetResult.Tables[0].Columns.Count; j++)
{
result = result + dsGetResult.Tables[0].Rows[i].ItemArray[j].ToString();
}

sw.WriteLine(result);
result = "";

}
sw.Close();




Post Reply
You must Sign In to post a response.
Next : no of clicks using static int variable
Previous : stored rocedures for inserting and retreiving data(two output parameters) from database
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use