About 53 results
Open links in new tab
  1. c - How does the fscanf function work? - Stack Overflow

    Can someone walk me through on how does the fscanf work on this particular example (also what EOF represents). The code works, but I don't understand the process behind it. #include <stdio.h> #

  2. c - How to use fscanf () format string - Stack Overflow

    Apr 11, 2019 · I am using fscanf() to read input from a file (I know I should be using fgets() but I'm not allowed) and I can't figure out how to use the format string right. The input is in the format: M 03f8ab...

  3. Reading file using fscanf() in C - Stack Overflow

    Reading file using fscanf () in C Asked 15 years, 7 months ago Modified 1 year, 11 months ago Viewed 262k times

  4. Reading strings, integers etc from files using fscanf

    May 26, 2017 · Reading strings, integers etc from files using fscanf Ask Question Asked 13 years, 7 months ago Modified 8 years, 2 months ago

  5. c - fscanf return value - Stack Overflow

    Mar 10, 2013 · here the fscanf is supposed to check for matches in the input file with the format string provided in the function call and accordingly assign the (in order of their position) variable - address …

  6. what are the differences between scanf () and fscanf ()?

    Apr 4, 2011 · what are the differences between scanf () and fscanf ()? Ask Question Asked 14 years, 11 months ago Modified 10 years, 10 months ago

  7. How do I correctly use fscanf function in C? - Stack Overflow

    Feb 24, 2019 · I am learning how to work with files in C. So far I can write (create) txt files using fopen + fprintf function, but I did not understand how the read and write parameter works. Whenever I use a+,...

  8. Scanning strings with fscanf in C - Stack Overflow

    Oct 24, 2012 · Scanning strings with fscanf in C Asked 13 years, 4 months ago Modified 8 years, 6 months ago Viewed 28k times

  9. c - fscanf problem with reading in String - Stack Overflow

    Dec 12, 2009 · When fscanf finds whitespace in its format specifier (a space, newline, or tab), it consumes as much whitespace as it can (i.e. you can think of it consuming the longest string that …

  10. c - Trouble reading a line using fscanf () - Stack Overflow

    Apr 30, 2017 · Using fscanf to read/tokenise a file always results in fragile code or pain and suffering. Reading a line, and tokenising or scanning that line is safe, and effective.