Preview:
//binary input and output with integer.
//we use two functions:write()andread().
//they transfer a buffer full of bytes to and from a disk file.
//the parameters to write() and read() are the buffer address.
//and its length.
#include<fstream>
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter