Oregon Trail high scores format
High scores in The Oregon Trail are stored in the HISCORES.REC file. It is simply 10 names, fixed width, prefixed with a length byte.
|UINT8||Name Length||The number of characters to read for the Name.|
|char||Name||The name of this high score record.|
This FreeBASIC program will print all 10 of the high score names.
Dim As UByte StringLength Dim As Integer Record Dim As String ScoreName Open "HISCORES.REC" For Binary As #1 For Record = 1 To 10 Get #1, , StringLength ScoreName = Space(17) Get #1, , ScoreName Print Str(Record) + ".) " + Left(ScoreName, StringLength) Next Record Sleep
This format was reverse engineered by TheAlmightyGuru. If you find this information helpful in a project you're working on, please give credit where credit is due. (A link back to this wiki would be nice too!)