Create text file when game is exported

So I’m making a basic trading card game and the cards the user has is in a text file, and based on what card names are in the text file it puts those cards in the users inventory. So I did this by creating the text file in “assets/resources/collection.txt” My problem is that when I export the game, that text file is gone ( I’m guessing it does this because it packages the assets when exported ). How would I get that text file to be accessed or created out of the assets. ( FYI I’m using System.IO to read file )

I fixed this by creating the file in Application.persistantDataPath.