Hello, I just joined.
Looking for a code example that will read a file into memory and then write it to an output file.
Input file is a fixed length file of 25 bytes.
How do I figure out the size of the input file and then allocate enough memory. Then read it into memory, then be able to access certain fields which I would then write to my output file.
I have a version of a C++ program that does not read the input file into memory and it takes 15 hours to run. Input file has 7 millions records.
Looking for a code example that will read a file into memory and then write it to an output file.
Input file is a fixed length file of 25 bytes.
How do I figure out the size of the input file and then allocate enough memory. Then read it into memory, then be able to access certain fields which I would then write to my output file.
I have a version of a C++ program that does not read the input file into memory and it takes 15 hours to run. Input file has 7 millions records.