About 678,000 results
Open links in new tab
  1. What is Opening a file in C? - Stack Overflow

    Dec 27, 2010 · For the basic ANSI C API of open, read, write that use a file descriptor, the file descriptor is a simple integer that is passed onto the OS and signifies the file. In the OS itself this is most often …

  2. c - Error opening file - Stack Overflow

    Oct 7, 2012 · Original problem I'm having trouble with C using Visual Studio 2012 on Windows 7 trying to open a text file using fopen. I'm not too sure which directory this file.txt should be in so I tried …

  3. c - Unable to open a file with fopen () - Stack Overflow

    Nov 17, 2009 · I've been trying to open a file and output text, but I keep getting errors. So I thought I would start at the very beginning and just try opening the file. This is my code: #include <stdio.h&...

  4. 'invalid argument' error opening file (and not reading file)

    Dec 3, 2021 · I am trying to write code that takes 2 numbers in a text file and then divides them, showing the answer as a top heavy fraction. I have gotten the fractions part to work when I am inputting my …

  5. Unable to open file.txt with c++ - Stack Overflow

    The file cannot be opened because the file system can't find the file named " [Bell]rray.txt". the character sequence '\a' is the "Make my computer Beep" character. Use either forward slashes: "C:/array.txt", …

  6. Check the file-size without opening file in C++? - Stack Overflow

    Jun 6, 2019 · GetFileSize() requires the file to be opened first, then it uses that handle to determine where the file is located in the filesystem so it can grab the size. If you use FindFirstFile() instead, it …

  7. c - Opening a file in 'a+ 'mode - Stack Overflow

    Jan 15, 2013 · The initial file position for reading is at the beginning of the file, but output is always appended to the end of the file. So does f1 have 2 separate offset pointers, one for read & another …

  8. c - Error handling in file opening - Stack Overflow

    Jan 21, 2014 · c file error-handling fopen fclose asked Jan 21, 2014 at 19:52 ᴜsᴇʀ 1,168 2 11 24

  9. c - What does opening a file actually do? - Stack Overflow

    Nov 3, 2015 · In all programming languages (that I use at least), you must open a file before you can read or write to it. But what does this open operation actually do? Manual pages for typical functions …

  10. file access - "Permission denied" in open () function in C - Stack Overflow

    Jan 5, 2020 · I am new to C programming. I am having problem writing to a file using the open () function in C, here is my code for clarity #include <stdio.h> #include <stdlib.h> #include <string....