global proc string[] readArrayFile (string $fileName){ string $outPut[]; int $index; //populate an array with the text from a file line by line $fileId=`fopen $fileName "r"`; string $nextLine = `fgetline $fileId`; while ( size( $nextLine ) > 0 ) { $outPut[$index]= $nextLine; $index++; $nextLine = `fgetline $fileId`; } fclose $fileId; return $outPut; }///