you must delete this line because it cuts last line of the file

for(;!input_file.eof(); i++)
{
     input_file >> string_number;
     ....
}