If you want to append data to an existing binary file, BinaryFile.dat, which of the following statements would you use to open the file?

a. ```
FileOutputStream fstream =
new FileOutputStream("BinaryFile.dat");
DataOutputStream binaryOutputFile =
new DataOutputStream(fstream);
```
b. ```
FileOutputStream fstream =
new FileOutputStream("BinaryFile.dat", false);
DataOutputStream binaryOutputFile =
new DataOutputStream(fstream);
```
c. ```
FileOutputStream fstream =
new FileOutputStream("BinaryFile.dat", true);
DataOutputStream binaryOutputFile =
new DataOutputStream(fstream);
```
d. ```
IFileOutputStream fstream =
new FileOutputStream("BinaryFile.dat");
DataOutputStream binaryOutputFile =
new DataOutputStream(fstream, true);
```

c. ```
FileOutputStream fstream =
new FileOutputStream("BinaryFile.dat", true);
DataOutputStream binaryOutputFile =
new DataOutputStream(fstream);
```

Computer Science & Information Technology

You might also like to view...

You use the ________ view to create queries

Fill in the blank(s) with correct word

Computer Science & Information Technology

You can import data from an Excel workbook into Access by copying the data from an open worksheet and pasting it into an Access datasheet

Indicate whether the statement is true or false

Computer Science & Information Technology