This function writes a CFString to the open file and optionally returns a boolean to indicate success or failure.
Important note: write file's syntax 1 must be matched with the correct openmethod for use with CFStrings. See syntax 1 for open.
Syntax 2:
This statement writes numberBytes of data to the open file or serial port specified by deviceID, starting at the current "file mark" position. The data is copied from the memory which starts at address. This is generally the fastest way to write a large amount of data to a file.
Important note: write file's syntax 2 must be matched with the correct openmethod for use with a pointer to a buffer. See syntax 2 for open.