Reads data from files