Make .txt file unreadable / uneditable

前端 未结 10 1707
北海茫月
北海茫月 2020-12-29 03:29

I have a program which saves a little .txt file with a highscore in it:

 // Create a file to write to. 
string createHighscore = _higscore + Environment.NewL         


        
10条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-29 04:02

    Something I have not yet seen mentioned is storing the high score on an online leader board. Obviously this solution requires a lot more development, but since you are talking about a game, you could probably make use of a third party provider like Steam, Origin, Uplay, ... This has the added advantage of leader boards not just being for your machine.

提交回复
热议问题