System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
string account_data = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments) + "/account/";
bool compare_credentials(string username, string password) {
if (!System.IO.File.Exists(account_data + "file.bin"))
return false;
string credential_string[] = System.IO.File.ReadAllLines(account_data + "file.bin");
if (credential_string[0] == username && credential_string[1] == password)
return true;
return false;
}
void write_credentials(string username, string password) {
string credentials[] = { username, password };
System.IO.File.WriteAllLines(account_data + "file.bin", credentials);
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.