You must initialize your variable with a value. Arrays are fixed-size containers, if I'm right that you need an array of length 5 here, you can use the following to create it with 5 empty lines as a start:
var firstLineArray: Array<String> = Array(5) { "" }
Or, if you're fine with Array<String?>and dealing with possible values nullwhen reading from an array, you can do:
var firstLineArray: Array<String?> = arrayOfNulls(5)
source
share