can reverse file using array stack