
Untitled
By: a guest on
May 2nd, 2012 | syntax:
C# | size: 0.53 KB | hits: 20 | expires: Never
public static string TestId()
{
var ID = "0";
if (File.Exists (ScoresSaver.IdPath))
{
ID = GetLocalId();
}
else
{ // файла id еще нет, сначало надо получить и удалить старый(???)
DeleteId();
ID = ScoresSaver.GetId ();
Id = Encoding.UTF8.GetString (Convert.FromBase64String (Id));
File.WriteAllText (ScoresSaver.IdPath, ID);
}
return ID;
}