Advertisements
Advertisements
प्रश्न
Explain the process File handling.
संक्षेप में उत्तर
Advertisements
उत्तर
- File handling is an important part of any web ap¬plication. You often need to open and process a file for different tasks.
- File handling is needed for any application. For some tasks to be done file needs to be processed.
- File handling in RHP is similar as file handling is done by using any programming language like C.
- Five major operations can be performed on file are:
- Creation of a new file.
- Opening an existing file.
- Reading data from a file.
- Writing data in a file.
- Closing a file.
- Steps for Processing a Fite
- Declare a file pointer variable.
- Open a file using open() function.
- Process the file using the suitable function.
- Close the file using fclose() function.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
