iptables block ip from text

How do I read a list of ip address (subnets) using a text file and block all of them using Linux iptables command?

{ 10 comments }