About 123,000 results
Open links in new tab
  1. fread - cppreference.com

    May 9, 2023 · If size or count is zero, fread returns zero and performs no other action. fread does not distinguish between end-of-file and error, and callers must use feof and ferror to determine …

  2. C fread () Function - GeeksforGeeks

    Sep 17, 2024 · The C fread () is a standard library function used to read the given amount of data from a file stream. Defined inside <stdio.h>, the fread () function reads the given number of …

  3. fread (3) - Linux manual page - man7.org

    RETURN VALUE top On success, fread () and fwrite () return the number of items read or written. This number equals the number of bytes transferred only when size is 1. If an error occurs, or …

  4. fread () function - C Library

    The C library size_t fread (void *ptr, size_t size, size_t nmemb, FILE *stream) function reads data from the given stream into the array pointed to, by ptr.It is commonly used for reading binary …

  5. fread - C++ Users

    Reads an array of count elements, each one with a size of size bytes, from the stream and stores them in the block of memory specified by ptr. The position indicator of the stream is advanced …

  6. An Essential Guide to C fread() Function by Practical Examples

    In this tutorial, you'll learn how to use the C fread () function to read data from a file into the memory.

  7. C fread Tutorial: Master File Reading with Practical Examples

    Apr 6, 2025 · This tutorial has explored the fread function in depth, from basic usage to advanced techniques. You've seen how to read different data types, handle errors, and optimize file …

  8. How to Use fread () in C: Efficient Binary File Reading Explained

    Learn how to use the fread () function in C for efficient binary file reading. This comprehensive guide covers basic syntax, practical examples, key differences from similar functions, and best …

  9. fread - Open Group

    Upon successful completion, fread () shall return the number of elements successfully read which is less than nitems only if a read error or end-of-file is encountered. If size or nitems is 0, fread …

  10. C Programming/stdio.h/fread - Wikibooks, open books for an ...

    Dec 15, 2020 · Upon returning, fread sets the file pointer in the stream pointing to the byte past the last byte that has been read. The contents of stream remain unchanged. The fread …