openBinaryWriter()
Function that opens a file as a binary file for writing purposes. The function returns a DataOutputStream(see DataOutputStream).
openBinaryWriter(filename, append)
filename
String that represents the name of the file to open.
append
Boolean parameter that specifies whether the file pointer should initially be positioned at the end of the existing file (append mode) or at the beginning of the file (overwrite mode).