The youngster was taken to Victoria Hospital in Kirkcaldy for treatment.