update read file from terminal