using System.IO; namespace NcProgramManager.Licensing { internal static class LicenseFile { internal static bool TryRead(string path, out string base64) { base64 = null; try { if (!File.Exists(path)) return false; string content = File.ReadAllText(path).Trim(); if (string.IsNullOrEmpty(content)) return false; base64 = content; return true; } catch { return false; } } } }