C -- 001 n characters to file

Channel:
Subscribers:
771
Published on ● Video Link: https://www.youtube.com/watch?v=xncrbVPphjs



Duration: 1:49
188 views
4


How to write a given number of characters to file in C.

getche() gets a typed character
fopen() opens file and w is for "write" mode
fputc() puts a character in the given file (through file pointer)

https://github.com/26F/C_example_code/blob/master/001%20n%20characters%20to%20file.c







Tags:
C programming
computer programming
getch()
fopen()
fputc()
write to file C
write chars to file C
write characters to file C
get keyboard C