I am in the final stages of my Card Sharks game development, and I am wondering: How do I carry the champion's name and his/her corresponding winnings amount onto a text file?

1. The Champion's name is denoted by "gstrChampName".
2. The Champion's accumulated winnings from previous games is denoted by "PrevWinnings".

How do I write their values onto a text file so that the text file can act as a database?