Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » ISO11783 Node Layer » Iso11783FSWriteFile

Iso11783FSWriteFile

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long Iso11783FSWriteFile( dword fileHandle, dword bufferSize, char buffer[] );
long Iso11783FSWriteFile( dword fileHandle, dword bufferSize, byte buffer[] );

Description

This function writes data to an open file. Note: Contrary to the other file operations, this function does not provide any functionality for a passed directory handle.

Parameters

  • fileHandle: File handle, see also Iso11783FSOpenFile
  • bufferSize: Number of bytes to write
  • buffer: Data to write

Return Values

Example

LONG handle;
char data[200];

handle = Iso11783FSOpenFile( "\test.TXT", 0x02 );
if (handle > 0) {
  Iso11783FSWriteFile( handle, 12, "Hello World!" );
  Iso11783FSCloseFile( handle );
}