Acquiring and storing data to SD card at high rate from 4 analog pins

Thanks everybody for their suggestions. The code shared by Caltoa worked perfectly fine.