Skip to main content

Questions tagged [fopen]

fopen opens a file resource, in order to read, write or append content to it.

5 votes
1 answer
73 views

Intercept open syscall in C, when called via fopen

I'm trying to code up a (limited) in-memory file system redirects via libc/syscall interception and returning memfd_create-produced file descriptors for the files that are virtualized. As a ...
Vadim Kantorov's user avatar
2 votes
1 answer
65 views

Unsuccessful attempt in creating/overwriting a file using fopen

I tried to run the following program: #include <stdio.h> #include <stdlib.h> int main(){ FILE *datei = fopen("employees.txt", "w"); fprintf(datei, "Anna\n&...
AJsthename's user avatar
2 votes
2 answers
142 views

Why doesn't my C program save the inputs to file using fopen()?

I just learned C and I'm trying to save the inputs from the user when the code runs, but then it seems that I cannot store the inputs especially for saving the inputs when I rerun the file again. I ...
congi's user avatar
  • 21
1 vote
2 answers
55 views

Non existent path or file when reading a file in a network shared drive, in Oracle DB 21c XE?

I have a network public drive with EVERYONE access to read and write, which is my PC running windows 10. My oracle instance is running on my laptop which is windows 11 and I have mounted the network ...
Nehan Shashith's user avatar
0 votes
1 answer
39 views

fopen() cannot read .xml file from connection

I was able to read the .xml file, which is publicly available and accessible from the web browser, in a normal way until today as follows. $file_handle = fopen($exchanges_file_url, 'r'); However, as ...
muro's user avatar
  • 1
0 votes
0 answers
47 views

SAS inserting observations from textfile, incomplete read

Having a textfile containing lines like Mailtext = '/9j/4AAQSkZJRgABAQEAkACQAAD/...
NaHolla's user avatar
  • 85
-1 votes
1 answer
99 views

The fread function throws an exception when reading a binary file

This function receives the main.c binary file path in the command line parameter, then reads the contents of this file, puts it into the buffer character array, adds the terminator '\0' at the end, ...
Borges's user avatar
  • 21
0 votes
1 answer
39 views

PHP :: create file name with emoji characters using fopen

I'm trying to create file name without text and use emoji instead. If I'm putting the character itself it is working perfectly BUT I want to use safer method inside my php code so I replaced it with ...
Hezi-Gangina's user avatar
0 votes
1 answer
47 views

How to get fopen with "rw" to work in php?

I have looked at several excellent questions/answers related to this (such as this and this), and none seem to apply. The latter link says r and rw are the same (at least rw+) and fopen ignores the w....
Chiwda's user avatar
  • 1,329
0 votes
0 answers
37 views

JSON to CSV using php, but prevent saving file on server [duplicate]

We use the following php code to transform JSON to CSV, that works fine. But it will also create a file named download.csv that will be downloaded. Is there a way to build and download a .csv all on ...
JGeer's user avatar
  • 1,802
0 votes
1 answer
69 views

Integer File Not Opening Correctly

I apologize that this is probably a question with a very simple explanation, but I can't seem to find it. I'm currently trying to build a basic database with C. I need to save a structure-linked ...
Ratdude's user avatar
  • 67
-3 votes
1 answer
99 views

Write file and read file in C

I am doing some homework and preparing for a final exam. Here is my problem: A square matrix (nxn) Write down the Even elements into matran.txt, then read from file and display it on screen Code: //...
Đinh Trọng Đạt's user avatar
0 votes
2 answers
78 views

How do I read files in different directories using C?

I have been learning C as of late, and the one thing that keeps tricking me up is file reading/writing. My goal is to print out the contents of "words.txt" in my main file. I know how to do ...
s3anzi3's user avatar
  • 11
-2 votes
1 answer
40 views

fopen() with full file path not creating file and no errors when checked in C using Xcode macOS

I am new to C and just started learning how to create and write files in Xcode. I know some Python and bash and have been able to read, write, append, create, delete, move text files but this issue ...
flybella's user avatar
0 votes
1 answer
123 views

How to stream a video in Laravel

I'm trying to stream a video in Laravel 9 by using imanghafoori1/laravel-video package. but I keep getting an error message: fopen(C:...\storage\videoFiles/ui/2024-02-11-1-I6bnWsI8J0-128210 (Original)...
Laravel Learner's user avatar

15 30 50 per page
1
2 3 4 5
195