atoi() takes a c-style string (array of char, null-terminated)
You can use the c_str() member function of an ifstream to feed it:
Code:
//getline (accfile, ucty); //<=== mistake? where is and what is ucty
getline (accfile, na); // my guess, since you use na in the next statements
atoi(na.c_str()); // <=== c-style string
This may get you to the point of debugging, I hope.
Regards,
Dave