If datafile is a file stream object and accountclosed is an integer type variable, which of the below statements writes the value of accountclosed to the file represented by datafile?
a) datafile << accountclosed;
b) datafile.write(accountclosed);
c) write(datafile, accountclosed);
d) datafile.writeToFile(accountclosed);