Buffers are like strings, but with a much more specific purpose. A string is good at holding text, but adding stuff to it is pretty slow. If you need to do a whole bunch of little inputs to something, a buffer is a better choice over a string. Its main use is File I/O. After text has been dumped into a buffer, it is considerably faster to deal with it as a string.
Advertisement