Adding IP groups using text file

Adding IP groups using text file

How do I add IP groups using a text file