Predefined macro
This macro writes the contents of next byte to a file. You must define the identity of the file with either the fopen macro or the FOPEN command. You can also specify the file as the Standard I/O window.
Syntax:
int
fputc (byte, fileid)
int byte;
int fileid;
where:
|
byte |
The byte to be written |
|
fileid |
The ID number of the file where the next byte is to be written. This must be a user-defined fileid. |
Return Value
Not used
Rules
Any file used to read, or get, the contents of the next byte, must be opened in write mode. For example: fopen (100,"c:\\myfiles\\data_out.txt","w").