When trying to copy a text file A to another file B, there may have several methods: 1) byte by byte 2) word by word 3) line by line
which one is more efficient?
If done well, Byte by byte is more efficient. Of course that's not the whole story: it depends on how many bytes you copy at once. If you literally copy byte for byte you'll do an I/O call for every byte and end up being slower than the string libraries. Most people just guess at a good buffer size (generally 2048 or bigger, in multiples of 2) and use that.