static bool SaveTextFile(string sFilePath, string sContent)
{
bool bSuccess = false;
try
{
// Pass the file path and filename to the StreamWriter Constructor
StreamWriter sw = new StreamWriter(sFilePath);
// Write the text
sw.Write(sContent);
// Close the file
sw.Close();
bSuccess = true;
}
catch (Exception e)
{
MessageBox.Show(e.Message);
}
return bSuccess;
}