buys.txt.
SSN|ISBN|quantity” to the end of the file buys.txt.
operator>>) that reads the stream of bytes from the file buys.txt,
Purchase object,
Purchase object's values, and
operator<<) that writes the Purchase object back to the file.