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; }