Ejemplo n.º 1
0
        /// <summary>
        /// Gets ready for writing.
        /// </summary>
        protected override void Writing()
        {
            if (_writer == null)
            {
                // 090831 Stopped to use Far.TempName() to avoid MT issues
                //! NB: GetTempFileName() creates a file, so that then we append
                _fileName = Path.GetTempFileName();
                _writer   = new StreamWriter(_fileName, true, Encoding.Unicode);

                // for viewing
                _writer.AutoFlush = true;

                // wrap with output
                _output = new StreamOutputWriter(_writer);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets ready for writing.
        /// </summary>
        protected override void Writing()
        {
            if (_writer == null)
            {
                // 090831 Stopped to use Far.TempName() to avoid MT issues
                //! NB: GetTempFileName() creates a file, so that then we append
                _fileName = Path.GetTempFileName();
                _writer = new StreamWriter(_fileName, true, Encoding.Unicode);

                // for viewing
                _writer.AutoFlush = true;

                // wrap with output
                _output = new StreamOutputWriter(_writer);
            }
        }