ADXL 345 & Adafruit SD data logger_ how to merge the two working codes together?

Referring to the begin and end transmission, from Live Fast Code Young-

"Lets look at that communication diagram on page 10 of the datasheet again. The steps we are to follow, in order to perform a multi-byte reading, are:
1.Initiate transmission to device (using write address*)
2.Write the address of the register we want to start** reading from
3.Initiate transmission to device, again! (using read address*)
4.Read bytes one after another
5.Finish transmission"

So, according to that resource, this is the way to communicate with the ADXL345. It works quite well, as I said, I get good numbers from the unit on all three axis in the serial monitor. The intent is to set this unit up and have it run for months at a time, so I'm hoping to have it dump information into the excel file and only save once the file has reached a certain size (probably 4 gigs due to the maximum size FAT32 will support), however I haven't gotten that far yet...