update FileReader and FileWriter