FPUTC

Concept Link IconSee also Concept Link IconExample

Write a single character to a file.

WebVue support - Yes.

Before using any of the file management instructions, except FSTAT, RENAME, UNLINK, FILETOBUF or BUFTOFILE, you must first open the file using an FOPEN instruction.

Before any program including the FOPEN instruction ends, it must execute an FCLOSE instruction.

Syntax

IntVal = FPUTC(Filename, Char);

Return type: INTEGER.

Argument

Meaning

Filename

The name of the file to which the character is to be written. Type STR.
If executed in a WebVue session context this instruction is processed by the computer that hosts the web back end and the referenced file is on that computer.

Char

The character that is to be written. Type STR

Execution

Return: 1 if successful, else 0.

Example

err = FPUTC("histo.fil","A");

For further examples, select the Example link above.