IPATools.PlistEditor.PlistInfo.CreateFileStream C# (CSharp) Method

CreateFileStream() private method

private CreateFileStream ( string path ) : bool
path string
return bool
        private bool CreateFileStream(string path)
        {
            bool returnValue = false;
            try
            {
                Info = new FileInfo(path);
                if (fs != null)
                {
                    fs.Close();
                }
                if (Info.Exists)
                {
                    Info.Delete();
                }
                fs = new FileStream(Info.FullName, FileMode.OpenOrCreate, FileAccess.ReadWrite);
                returnValue = true;
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
            return returnValue;
        }