Thought that's what I did. 😉
Look at [man]file_get_contents/man if you just want to load the whole file into one string, or [man]file/man if you want to load each line of that file into a separate element of an array. Then use [man] explode/man as suggested above, returning its result to an array.
Yes, I could spoon-feed you the precise code I might use, but you'll actually learn and understand it if you spend 5-10 minutes reading those links, looking at their examples, and then try to write the code yourself. If it doesn't work, just post what you wrote along with any error messages you get, and we'll help you debug it until you get a solution that works and makes sense to you.