Still, couldn't hurt to add a `if (buffer.empty()) { return; }`, right? :)  `read` will also return an empty string if the user doesn't have permission to read from the file.