BLL.Workflows.EffectiveMunkiTemplate.WritePath C# (CSharp) Method

WritePath() public method

public WritePath ( string path, string contents ) : bool
path string
contents string
return bool
        public bool WritePath(string path, string contents)
        {
            try
            {
                using (var file = new StreamWriter(path))
                {
                    file.WriteLine(contents);
                }

                return true;
            }
            catch (Exception ex)
            {
                Logger.Log("Could Not Write " + path + " " + ex.Message);
                return false;
            }
        }