Modify from file input to array