About 171,000 results
Open links in new tab
  1. C fopen () Function - GeeksforGeeks

    Jul 12, 2025 · In C, the fopen () function is used to open a file in the specified mode. The function returns a file pointer (FILE *) which is used to perform further operations on the file, such as …

  2. fopen (3) - Linux manual page - man7.org

    fopen, fdopen, freopen - stream open functions. Standard C library (libc, -lc) Feature Test Macro Requirements for glibc (see. feature_test_macros(7)): fdopen (): _POSIX_C_SOURCE. The fopen …

  3. C Library - fopen () function

    The C library function FILE *fopen (const char *filename, const char *mode) opens the filename pointed to, by filename using the given mode. It opens a file and returns a pointer to a FILE …

  4. std:: fopen - cppreference.com

    Sep 10, 2023 · File access mode flag "b" can optionally be specified to open a file in binary mode. This flag has no effect on POSIX systems, but on Windows, for example, it disables special …

  5. fopen, _wfopen | Microsoft Learn

    Jun 12, 2025 · The fopen function opens the file specified by filename. By default, a narrow filename string is interpreted using the ANSI codepage (CP_ACP). In Windows Desktop …

  6. fopen - C++ Users

    Opens the file whose name is specified in the parameter filename and associates it with a stream that can be identified in future operations by the FILE pointer returned. The operations that are …

  7. Opening Streams (The GNU C Library)

    In the GNU C Library, you can simply close the standard streams and open new ones with fopen. But other systems lack this ability, so using freopen is more portable.

  8. How to Use fopen in C: File Handling, Examples, and Best Practices

    Learn how to use the fopen function in C to open, read, write, and append files. This guide includes syntax, examples, error handling, and secure coding tips for beginners and …

  9. C fopen Tutorial: Master File Handling with Practical Examples

    Apr 6, 2025 · What Is fopen? The fopen function in C opens a file and returns a FILE pointer for subsequent operations. It requires two parameters: the file's name (or path) and the mode, …

  10. An In-Depth Guide to fopen () in C - TheLinuxCode

    Nov 6, 2023 · The fopen () function provides an efficient way to access files that balances control, performance, and portability. By understanding file modes, leveraging buffering appropriately, …