update with BufferedReader & BufferedWriter