| Author: Deepa 05 Jul 2008 | Member Level: Diamond | Rating:  Points: 6 |
write matter in notepad save it in folder where ur project is... this is my code using in my project i hope this my help u
string FilePath; // FilePath = "C:\\Documents and Settings\\Administrator\\My Documents\\Visual Studio 2005\\WebSites\\EmailTest\\Test.txt"; FilePath = "C:\\Inetpub\\wwwroot\\Aimtechno\\Test.txt"; File.Exists(FilePath); //textBoxContents.Text = File.ReadAllText(FilePath); MyMessage.Body = File.ReadAllText(FilePath) + (System.Environment.NewLine.ToString()) + "Employee Number : '" + EmpNum.Text + "' " + (System.Environment.NewLine.ToString()) + "Your Password : '" + ds.Tables[0].Rows[0]["Password"].ToString() + "'" + (System.Environment.NewLine.ToString()) + (System.Environment.NewLine.ToString()) + "ATGS Team";
|