Sub Build_Stats_dat
Dim raf As RandomAccessFile
If File.Exists(File.Combine(File.DirRootExternal,"Volleyball/data"), "Last_Game") = False Then
File.MakeDir(File.DirRootExternal,"Volleyball/data")
End If
raf.initialize(File.Combine(File.DirRootExternal,"Volleyball/data"), "Last_Game", False)
raf.writeobject(players, False, 0)
raf.writeobject(GameScores.Text, False, raf.CurrentPosition)
raf.writeobject(Opponent.Text, False, raf.CurrentPosition)
raf.WriteObject(RosterEt.Text, False, raf.CurrentPosition)
raf.Close
End Sub
Sub Load_Stats
If File.Exists(File.Combine(File.DirRootExternal,"Volleyball/data"), "Last_Game") = True Then
Dim raf As RandomAccessFile
raf.initialize(File.Combine(File.DirRootExternal,"Volleyball/data"), "Last_Game", False)
players = raf.readobject(0)
GameScores.Text = raf.ReadObject(raf.CurrentPosition)
Opponent.Text = raf.ReadObject(raf.CurrentPosition)
RosterEt.Text = raf.ReadObject(raf.CurrentPosition)
raf.close
CreateListOfPlayers(players.Size, False)
End If
If players.Size = 0 Then Msgbox("Press Menu then Edit Players or Load Roster","To Get Started")
End Sub