BeforeBuild.Substitution.WriteFile C# (CSharp) Method

WriteFile() private static method

private static WriteFile ( string dName, String lines ) : void
dName string
lines String
return void
        private static void WriteFile(string dName, String lines)
        {
            StreamWriter sw = null;
            try
            {
                sw = File.CreateText(dName);
                sw.Write(lines);
            }
            finally
            {
                if(sw != null)
                    sw.Close();
            }
        }