fprintf() and fscanf() function in C Language
O LEVEL -PAPER 3rD -- M3-R4
C LANGUAGE
fprintf() funtion in C
fprint() function in c |
Example of fprinf() function in C
example of fprintf() function |
This program takes a number from user and stores in the file
f1.txt.
After you compile and run this program, you can see a text
file f1.txt created in C drive of your computer. When you open the file, you
can see the integer you entered.
fscanf() funtion in C
fscanf() function in c |
Example of fprinf() function in C
example of fscanf() function |
This program reads the integer present in the f1.txt file
and prints it onto the screen.
If you succesfully created the file from above fprintf() example, running this program
will get you the integer you entered.
Comments
Post a Comment