ReadFile adjust to new Task class