define a file. how a file in opened and closed ?
abhilashb98:
A file is defined as FILE in the header file stdio.h Therefore all files should be declared as type FILE before they are used.
Answers
Answered by
0
a file in computer is the place where it contains some important data or document
file is opened by clicking on it and can be closed by selecting cross button
file is opened by clicking on it and can be closed by selecting cross button
Answered by
2
Function fopen() is used both toopen or create a file and fclose() is used to close an alreadyopened file. File 'read' and 'write' operations can be performed after opening a file. A file which is opened needs to be closed in order to avoid memory leakage.
Opening and Closing Files. Use Opento open a document file stored on your computer. Tip: You can open more than one file at a time by pressing the Ctrl key as you select additional files in the Open window. You can also open a range of files by pressing the Shift key to select the last file in a range.
Opening and Closing Files. Use Opento open a document file stored on your computer. Tip: You can open more than one file at a time by pressing the Ctrl key as you select additional files in the Open window. You can also open a range of files by pressing the Shift key to select the last file in a range.
Similar questions