Oppps, when I transferred the file from the mainframe to my PC some of the characters did not convert correctly.
Here is the code that extracts the fields to the output.
}
strncpy(polkID, arr, 10)...
Gentlemen, (I'm assuming your both male)
thank again for the quick responses.
arkM, yes, I would like to see more. I have included
my C++ program below that takes 15 hours to run.
A collegue a work wrote a C progam using the same
input file and it ran in 45 minutes.
Big difference when...
My input file has 25 bytes records and contains 7 million on them. A record is made up of 3 fields.
PolkID - 10 bytes
GeoCode - 6 bytes
UnitAmt - 9 bytes
Total of 25 bytes.
Can you show me how to create a class that would define these fields, how to figure out the size of memory I would need...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.