Fixed reading from file and assignments array type