Computer Science, asked by abhilashb98, 11 months ago

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 atharv1471
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

atharv1471: mark me as brainliest
Answered by Anonymous
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.
Similar questions