Added small private function charToInt in file class.