define a file. how a file in opened and closed ?
Answers
Answered by
3
(If the filename is a stream, then it is notclosed first or otherwise affected; it is used merely to provide a file name for theopening of a new stream.) X3J13 voted in January 1989 (STREAM-ACCESS) to specifythat the result of open, if it is a stream, is always a stream of type file-stream. ...
I think it will help you thanks
I think it will help you thanks
abhilashb98:
thanks
Answered by
3
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