Azavea.NijPredictivePolicing.Common.Data.TabSeparatedValueWriter.SetWriteFile C# (CSharp) Method

SetWriteFile() public method

specify an output file for APPENDing to, and sharing reading. (if you don't like it, send in your own filestream :)
public SetWriteFile ( string filename ) : bool
filename string
return bool
        public bool SetWriteFile(string filename)
        {
            try
            {
                _filename = filename;
                FileStream fs = new FileStream(filename, System.IO.FileMode.Append, System.IO.FileAccess.Write, System.IO.FileShare.Read);
                _outputStream = new StreamWriter(fs);
                return _outputStream.BaseStream.CanWrite;
            }
            catch (Exception ex)
            {
                _log.Error("SetWriteFile", ex);
            }
            return false;
        }