The byte array in the stream class is where all the bytes from the file are read to. Then using the stream class convert those bytes for reading/writing as needed with the different methods. Writing the string true requires 4 bytes, writing 1 or 0 for deteriming the boolean takes 1.





