tfFSWriteFileRecord
Table of Contents >> Application Reference >> File System Interface
#include <trsocket.h> |
int tfFSWriteFileRecord | ( |
void * userDataPtr, | |
void * fileDataPtr, | |
char * bufferPtr, | |
int bytes, | |
int eor | |
); |
Function Description
Given the unique user data pointer as returned by tfFSUserLogin() and a file data pointer as returned by tfFSOpenFile(), this function writes up to bytes from the buffer, in addition to an end of record if EOR is set to 1. If the file system does not support records, then the system end of line (i.e. <CR><LF> for DOS, <LF> for Unix) should be used instead of EOR.
Parameters
- userDataPtr
- Pointer to user data structure as returned by tfFSUserLogin().
- fileDataPtr
- Pointer to file data structure as returned by tfFSOpenFile().
- bufferPtr
- Pointer to buffer data to copy into the file.
- bufferSize
- Size in bytes of the data in the buffer.
- eor
- End of record indicator (1 if end of record needs to be written).
Returns
- TM_ENOERROR
- Success.
- -1
- Failure.
Table of Contents >> Application Reference >> File System Interface