refactor readLines(), writeLines(), appendLines() to FileClient