read from file class