OpenFileDialog openDlg = new OpenFileDialog();
openDlg.Title = "Open a text file";
openDlg.FileName = "";
openDlg.Filter = "All Files|*.*";
string sFileName = "";
if (openDlg.ShowDialog() != DialogResult.Cancel)
{
sFileName = openDlg.FileName;
StreamReader sr = new StreamReader(sFileName);
string sContent = sr.ReadToEnd();
sr.Close();
sr = null;
}
openDlg = null;
Twitter Bookmarklet and Tweet This Page Link - Moopz Here's the code javascript:void((function(){var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('src','http://moopz.com/tweetbm.js');document.body.appendChild(e)})())
Comments
Post a Comment