How can I write a function to open a file (say "C:\list.txt") and add each item in the file to an array using a newline as a deliminator?