Science Teacher Question: Download Science Teacher PDF

Please explain why we use File Handling?

Tweet Share WhatsApp

Answer:

The input and output operation that we have performed so far were done through screen and keyboard only.After the termination of program all the entered data is lost because primary memory is volatile . if the data has to be used later ,then it becomes necessary to keep it in permanent storage device. so the c language provide the concept of file through which data can be stored on the disk or secondary storage device.The stored data can be read whenever required.

Types of File Handling in C:
The file handling in C can be categorized in two types-

High level (Standard files or stream oriented files)- High level file handling is managed by library function. High level file handling is commonly used because it is easier and hide most of the details from the programmer.
Low level (system oriented files)- low level files handling is managed by system call.

Download Science Teacher PDF Read All 77 Science Teacher Questions
Previous QuestionNext Question
Please explain how will you prepare students for standardized assessments?Do you know what is the difference between a sequential file and a random file?