fclose

[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl, SetLastError = true)]
public static extern int fclose(
   IntPtr stream
);

Microsoft documentation: Link

Last updated