I open the file: fopen_s(&file, filepath, mode); Is it possible to find out any function from file , in which mode the file is open: "r", "w", "r+", "w+", "a", "a+" ?
|
I open the file: fopen_s(&file, filepath, mode); Is it possible to find out any function from file , in which mode the file is open: "r", "w", "r+", "w+", "a", "a+" ?
Source: https://ru.stackoverflow.com/questions/524818/
All Articles
modevariable? - Pavel Parshinmodevariable, I first open the file in "r +", if there is no file, then in "w". And so for several files. It would not have been convenient to store a bunch of modes in a separate vector for each file - DmitryFILEwith the storage of the current mode. - Pavel Parshin