FWRITE

Syntax

Example

Description/Remarks

FWRITE file_number, "text"

FWRITE 3,"Begin data collection." writes "Begin data collection." to file 3.

FWRITE 2, PBUFF$ writes the contents of the text buffer to file 2.

Writes "text" to the specified file. Does not return a value.

The file_number is an integer from 1 to 10 assigning a number to the file. The file number was specified by the FOPEN command. The file must have been opened in the " W" or "A" mode.

This command is identical to FPRINT except that FWRITE includes a carriage return at the end of each line, and it encloses the text in quotation marks.