Next: getc, Previous: ftell, Up: C library functions [Index]
fwrite
Function#include <stdio.h> FILE *f; String new path; String new mode; String new promptLine; path = "/home/user/.profile.new"; mode = "a"; f = fopen (path, mode); promptLine = "PS1=#"; fwrite (promptLine, promptLine length, sizeof (char), f);