Just for completeness (FYI):
The 'more elegant' approach would involve macro-substitutions, or indexed-variables. As I am not sure what language you are using I don't know if you have this option. For a one-time conversion, either way is about the same amount of work. However, if you have...
create your new file structure as <newfile>.
postion record pointer to first employee
in <csvfile>. (go 8)
do while not eof()
replace <newfile>.name with <csvfile>.csvfld3
skip 2
replace <newfile>.dob with <csvfile>.csvfld2
... and so on ...
skip <to next employee name record>
enddo
not...
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.