added buffered reader example to copy the file content