read file line by line print column wise

I have a .csv file which is seperated with (:wink:

inputfile
---------

ZZZZ;AAAA;BBB;CCCC;DDD;EEE;
YYYY;BBBB;CCC;DDDD;EEE;FFF;
...
...

reading file line by line till end of file.

while reading each line output format should be .

i need to print only specific columns let say 5th columns EEE

how to capture columns dynamically while reading a line?

Regards

cut -d"\;" -f5 inpFile

this will produce an output like

 
awk -F ';' '{print $5}' inputfile