public string GetSerialNumberFromFile() { string location = AppGlobal.get_working_directory() + @"\seal.dat"; string data; string curFile = AppGlobal.get_working_directory() + @"\\seal.dat"; //Your path data = (File.Exists(curFile) ? "File exists." : "File does not exist."); if (data == "File exists.") { string decryptfile = CoreEncryptionHandler.ProcessFileToText(location, "GLSystem", "Decrypt"); SerialNumber = decryptfile; } return(SerialNumber); }
public string GetLicenseidFromFile() { string location = AppGlobal.get_working_directory() + @"\note.dat"; string data; string[] ID; string curFile = AppGlobal.get_working_directory() + @"\\note.dat"; //Your path data = (File.Exists(curFile) ? "File exists." : "File does not exist."); if (data == "File exists.") { string decryptfile = CoreEncryptionHandler.ProcessFileToText(location, "GLSystem", "Decrypt"); ID = Regex.Split(decryptfile, "\r\n"); licenseID = ID[1]; } return(licenseID); }