CSKernelFile.cFile.write C# (CSharp) Method

write() public method

public write ( string text ) : bool
text string
return bool
        public bool write(string text)
        {
            if (!m_open) return false;
            try
            {
                TextWriter tw = new StreamWriter(m_file);
                tw.WriteLine(text);
                tw.Close();
                return true;
            }
            catch (Exception ex)
            {
                cError.mngError(ex, "write", c_module, "failed writing text to file: " + m_path + Path.DirectorySeparatorChar + m_name);
                return false;
            }
        }