Solution: b) FileOutputStream
Explanation: The FileOutputStream class is used to write data to a file in Java.