if ( -e "$fp" ) { open( TF, $fp ); while () { chomp; $kr = $_; } close(TF); } else { $kr = 0; }