Adds method to create string array from text file