FPUTS
Write a character string 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 = FPUTS(Filename, Chars);
Return type: INTEGER.
Argument |
Meaning |
Filename |
The name of the file to which the string is to be written.
Type STR. |
Chars |
The string that is to be written. Type STR. |
Execution
Return: 1 if successful, else 0.
Example
i1 = FPUTS("histo.fil",str1);
i1 = FPUTS("histo.fil",CHR(10)); 'Line feed
For further examples, select the Example link above.