change readFile to readCard