My question is similar to the Kevin asked about reading a flat file from COBOL using C.
I have to do the same using C++ and I am new to C++.
I need to read the file one record at a time.
My file record is as below:
Field Name Type Length
Emp Name alphanumeric(A) 10
Emp Age alphanumeric(A) 3
Emp Salary Zoned Dec(S) 10
If there are 10 records in my file, I want to process one record at a time and want to store the information using C++ in some structure say Emp_Struct?
Can somebody help me with the sample C++ code?
Regards,
JK
I have to do the same using C++ and I am new to C++.
I need to read the file one record at a time.
My file record is as below:
Field Name Type Length
Emp Name alphanumeric(A) 10
Emp Age alphanumeric(A) 3
Emp Salary Zoned Dec(S) 10
If there are 10 records in my file, I want to process one record at a time and want to store the information using C++ in some structure say Emp_Struct?
Can somebody help me with the sample C++ code?
Regards,
JK
Comment