I have to add an array of int passed as parameter in a binary file as argument of the function. In parameter of the function there is also the size of ...
I have to add an array of int passed as parameter in a binary file as argument of the function. In parameter of the function there is also the size of ...
Group G of The Champions League the results of football competition: RB Leipzig;AS Monaco;draw FC Porto;Besiktas JK;loss Besiktas JK;RB Leipzig; ...
I didn't find the answer on internet if there is please link it... Content of the file: Output that I have: ...
Under Linux I use this code to redirect stdout and stderr on a file, as shown in the code the file is opened using fopen(f) and is it closed using clo ...
In this task, I need to create multiple JPEG files. Each time, a file is opened, written, and closed before I open the next file. However, it shows an ...
i am trying to do script files to create and extract tarballs. It is code fro college and I am very new programming with c. Anyway, I can create a tar ...
I am trying to make it so you can write a multi line message and it will store it in a file of your choosing and to be done you enter ` but when I do ...
How to read an ASCII STL file cubea.stl to print it to a file output.dat? I wrote a part of the program, but this main.cpp doesn't work. I'm probabl ...
I've written a short program that reads JPEGs from a memory card and writes the JPEGs as individual files as the output. The program works as I intend ...
Regarding Go .Close(), I thought I remember having a situation where, if you didn't call .Close(), you would get an error after that. However I can't ...
Imagine the following code running as a thread: void *thread_worker(void *q) { for (;;) { int fd = some_queue_get(q); FILE *writer = fdopen(fd, ...
I have a file .txt with values of some variable. I need to read them to declarate my variables in main. What is wrong? Whats is wrong? I have to re ...
Hey so I have this project I have been working on and everything works but when I tried making one of the options user gets to by switch:case the opti ...
I'm trying to write a program,in which after pressing the 'v' button on the keyboard it opens a file for reading, and after pressing 'k' it closes the ...
I spend a sleepless night yesterday trying to track down a bug in my test case. My interface looks something like this: image read_image(FILE *file) ...
Suppose I have the following code : FILE *x = fopen("story.txt",r); if(x!=NULL) { x = fopen("story.txt",wb); /* <- Does this waste/leak memory ...
Suppose I use fopen and deem the file format to be invalid for my program or the pointer is NULL. What consequences are there to simply returning EXIT ...
I'm getting some weird results, while trying to write data to files in C.<br/> I thought that fclose() closes the *FILE and flushes the data fro ...
So far I don't think this is actually possible, but basically what I am trying to do is have one python program call another and run it, like how you ...
So, I tried to find an answer to this question unsuccessfully. I know what to do and how to manage such a case - by using fluss/NULL etc. afterward. ...