if names are without spaces use the >> operator. Otherwise use getline().
char names[150][30] = {"\0"}; //array of 150 empty strings
ifstream fin("myFile.txt");//if myFile.txt is in same folder as compiler
int i = 0;
//you now myFile.txt is not empty but it could have up to 150 names
fin.getline(names[i++], 29);
while(!fin.eof() && i < 150)
{
fin.getline(names[i++], 29)
}