Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
File Handling
Use these routines to create, delete, and manipulate files and to set and check file-access permissions.
The C run-time libraries have a preset limit for the number of files that can be open at any one time. The limit for applications that link with the single-thread static library (LIBC.LIB) is 64 file handles or 20 file streams. Applications that link with either the static or dynamic multithread library (LIBCMT.LIB or MSVCRT.LIB and MSVCRT.DLL), have a limit of 256 file handles or 40 file streams. Attempting to open more than the maximum number of file handles or file streams causes program failure.
The following routines operate on files designated by a file handle:
File-Handling Routines (File Handle)
The following routines operate on files specified by a path or filename:
File-Handling Routines (Path or Filename)