Problem with SD.h ... Serial.print... doesn't work

Yes I am using arduino 168, I was just starting using arduino 2 weeks ago.. I thought the arduino software/compiler would give me some warning messages if I was out of ram, how can I see if I am out of ram/if the compiler generates a corrupt file? (just wondering so I can figure it out myself this problem will bug me later)

But thank you so much for finding my problem, :smiley: :smiley: :smiley: I have been 4 days or semething trying to figure it out :o