EpLibrary.cs.BinaryFile.AppendToFile C# (CSharp) Method

AppendToFile() public method

Append the binary to the given file
public AppendToFile ( String filename ) : bool
filename String the name of the file to append
return bool
        public bool AppendToFile(String filename)
        {
            lock(m_baseBinaryLock)
            {
                try
                {

                    using(BinaryWriter writer = new BinaryWriter(File.Open(filename,FileMode.Append))){
                        writer.Write(m_stream.ToArray());
                        writer.Flush();
                    }
                    return true;
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message + " >" + ex.StackTrace);
                    return false;
                }
            }
        }