char *temp = 0; int greencross; temp = agk::ReadLine (fn); if ( temp ) { greencross = agk::Val(temp); delete [] temp; }