Arduino variables loaded from SD card
in you previous question, where I answered, you had no commas or new-lines in the example file content. the parseInt and parseFloat ignores only spaces by default.

remove the commas or read them or ignore them with parseInt parameter SKIP_ALL

km = myFile.parseInt(SKIP_ALL);