bit stream for writing to file