Hello,
I'm a student and I have to create a MasterMind game in VB.net language,
everything it's ok except one thing : I don't know how to save score from my MasterMind in a .txt file
Public Sub SaveScore()
FileOpen(1, "score.txt", OpenMode.Append)
For i = 1 To 20
PrintLine(1, TabScores(i))
Next
FileClose(1)
I've find how to load it when I start a new game but when I have to save nothing append
My score.txt file is located in mastermind>Bin>Debug
Thank you !
I'm a student and I have to create a MasterMind game in VB.net language,
everything it's ok except one thing : I don't know how to save score from my MasterMind in a .txt file
Public Sub SaveScore()
FileOpen(1, "score.txt", OpenMode.Append)
For i = 1 To 20
PrintLine(1, TabScores(i))
Next
FileClose(1)
I've find how to load it when I start a new game but when I have to save nothing append
My score.txt file is located in mastermind>Bin>Debug
Thank you !