Add read file before toArray