Read int values from the SD card

int ax[]={};
int ay[]={};
int az[]={};

The size if the arrays will then be defined by the number of initializers you provide. That number is pretty small, resulting in arrays that can't hold much. Just so you know, so you don't write out of bounds later.