MSVC compiler says that fopen() is deprecated, and recommends the use of fopen_s().
Is there any way to use fopen_s() and stil
Accroding to https://en.cppreference.com/w/c/io/fopen it's possible to enable *_s functions on the standard library:
As with all bounds-checked functions,
fopen_sis only guaranteed to be available if__STDC_LIB_EXT1__is defined by the implementation and if the user defines__STDC_WANT_LIB_EXT1__to the integer constant1before including.