[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FWRITE
. Summary
fwrite(str <buf>, int <count>, int <fh>);
. Description
The fwrite function writes bytes to the file represented by the file
handle <fh>. <count> number of bytes are written from <buf>.
. Return Value
The number of bytes actually written are returned, which may be less
than <count> if an error occurred.
. Example
int f;
str buffer[] = "1234567890123456789012345";
f = fopen("test.dat", "w");
fwrite(buffer, 25, f); // write test pattern to file
See Also:
fread
fgets
fputs
fgetc
fputc
fopen
fclose
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson