BExIS.IO.Transform.Output.DataWriter.Open C# (CSharp) Method

Open() public static method

If file exist open a FileStream
public static Open ( string fileName ) : FileStream
fileName string
return System.IO.FileStream
        public static FileStream Open(string fileName)
        {
            FileStream stream;

            if (File.Exists(fileName))
            {
                try
                {
                    stream = File.Open(fileName, FileMode.Open, FileAccess.ReadWrite);
                }
                catch (Exception ex)
                {

                    return null;
                }

                return stream;

            }
            else
                return null;
        }