File write.
This function lets you write to a file using the values specified via the FileReadWriteType structure.