fopen

[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, SetLastError = true)]
public static extern IntPtr fopen(
   string filename,
   string mode
);

Microsoft documentation: Link

Last updated