Im trying to print out the strings from a txt file in order. The pasted code just writes one and the same string over and over again, and I cant fo ...
Im trying to print out the strings from a txt file in order. The pasted code just writes one and the same string over and over again, and I cant fo ...
I was solving volume (one of the questions in cs50x). Apparently the code that I wrote, works when the file contents are read in an array and from tha ...
I wrote to file with fwrite and after that, I read the content of file but when I print it into a buffer and print it to stdout by "printf" I see noth ...
I am reading a file using a small buffer and printing it. But after every time it after fread and printf some unrecognized characters appear. I do not ...
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 ...
my file is In my file there is 4 records of country so it should print 4 times hellp, but it prints hello twice. The main task is to remove the ...
given the following text-file ("file_text); I'm trying to read the content of this file in this way: but it doesn't print the really content of ...
C code: Part of code 1: Part of code 2 : Part of code 3 : I am confused about the red mark areas(In image file I attached!) , (char *),!=0 an ...
The program only works for the first time. What was supposed to happen the second time was to add the same data to the binary file but that doesn't ha ...
I am a novice of c++. Those are trade data of NYSE, I am using those data to do quant analysis. A single file for one day is about 10G, so I have hund ...
I'm trying to implement simple fread() and frwite() example using strings. The program gives me segfault or free(): invalid pointer errors. Below is t ...
How i can create a function for reading structure from a test.txt. I have a good works code in main, but i need to carry out it from main(). How combi ...
"image" is a pointer to a file from which I want to copy data, and "new_image" is pointer to the directory where to I want to copy data. I do it in a ...
I am developing a program for computational material scientists: https://atomes.ipcms.fr/ Atomes can import large text files that contains atomic co ...
I am trying to import multiple dta files without typing individual import code lines and without wasting too much loading time. There are two challen ...
I'm attempting to read csv files that do not have a header. Each file has 11 columns. If data for a variable is missing for a time, it is left blank. ...
I have a data.table field that is a number but stored as a character. If I save the data.table using fwrite as a text file and read it using fread, th ...
I'm having a bit of a problem with an assignment. Like the title said, my task is to read structs in a binary file into an array of pointers, sort it ...
In c i am trying to read/write to a file with fread/fwrite(). According to this answer i can use ferror() and feof() to check for errors. My questio ...
I am writing a program in Visual Studio. I copied a file using fread and fwrite. The output file size is bigger then input file. Can you explain the r ...