mma7361 to work with SD card without serial

Can someone help me with this coding… i’m having a hard time getting it to work with my SD card without Serial… (via Ethernet Shield)
i have modified the AcceleroMMA7361.h file i changed all the serial print to file.print and in the coding, it doesn’t seem to work…

Basically i’m looking into a way to use this MMA7361 to work without serial using only the SD card…and save everything i get in serial input to my SD card without loading Serial.

// Date and time functions using a DS1307 RTC connected via I2C and Wire lib

#include <Wire.h>
#include "RTClib.h"
#include <AcceleroMMA7361.h>

AcceleroMMA7361 IMU;
int x;
int y;
int z;

RTC_DS1307 RTC;

void setup () {
    Serial.begin(57600);
    Wire.begin();
    RTC.begin();

  if (! RTC.isrunning()) {
    Serial.println("RTC is NOT running!");
    // following line sets the RTC to the date & time this sketch was compiled
    RTC.adjust(DateTime(__DATE__, __TIME__));
  }
  
  IMU.begin(13, 12, 11, 10, A0, A1, A2);
  IMU.setARefVoltage(3.3);                   //sets the AREF voltage to 3.3V
  IMU.setSensitivity(LOW);                   //sets the sensitivity to +/-6G
  IMU.calibrate();
}

void loop () {
  
    x = IMU.getXAccel();
  y = IMU.getYAccel();
  z = IMU.getZAccel();
  Serial.print("\nx: ");
  Serial.print(x);
  Serial.print(" \ty: ");
  Serial.print(y);
  Serial.print(" \tz: ");
  Serial.print(z);
  Serial.print("\tG*10^-2\t");
  
    DateTime now = RTC.now();
    
    Serial.print(now.year(), DEC);
    Serial.print('/');
    Serial.print(now.month(), DEC);
    Serial.print('/');
    Serial.print(now.day(), DEC);
    Serial.print(' ');
    Serial.print(now.hour(), DEC);
    Serial.print(':');
    Serial.print(now.minute(), DEC);
    Serial.print(':');
    Serial.print(now.second(), DEC);
    Serial.println();
    
    
     /*
    Serial.print(" since midnight 1/1/1970 = ");
    Serial.print(now.unixtime());
    Serial.print("s = ");
    Serial.print(now.unixtime() / 86400L);
    Serial.println("d");
    
    calculate a date which is 7 days and 30 seconds into the future
    DateTime future (now.unixtime() + 7 * 86400L + 30);
    
    Serial.print(" now + 7d + 30s: ");
    Serial.print(future.year(), DEC);
    Serial.print('/');
    Serial.print(future.month(), DEC);
    Serial.print('/');
    Serial.print(future.day(), DEC);
    Serial.print(' ');
    Serial.print(future.hour(), DEC);
    Serial.print(':');
    Serial.print(future.minute(), DEC);
    Serial.print(':');
    Serial.print(future.second(), DEC);
    Serial.println();
    
    Serial.println();
    */
    
    delay(500);
}

i'm having a hard time getting it to work with my SD card without Serial.. (via Ethernet Shield)

You're SD card is on the Ethernet shield? Is that how I'm supposed to read that?

  IMU.begin(13, 12, 11, 10, A0, A1, A2);

If I did read that right, then you can't use the SPI pins (11, 12, and 13) for the IMU, too. Nor can you use pin 10.