fprintf() and fscanf() function in C Language


O LEVEL -PAPER 3rD -- M3-R4

C  LANGUAGE 


fprintf() funtion in C



fprint(),fprintf() function in c
fprint() function in c



 Example of fprinf() function in C



fprintf(), fprintf() function example
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(),fscanf() function in c
fscanf() function in c


Example of fprinf() function in C


fscanf(),fscanf() 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

Popular posts from this blog

Notepad, Wordpad and Paint

O LEVEL- INTERNET TECHNOLOGY & WEB DESIGN

O LEVEL- INTERNET TECHNOLOGY & WEB DESIGN