[Resolved] Random Error Codes

I'm not too familiar with SdFat but haven't you declared sdout improperly?
Shouldn't it be declared as:

SdFile sdout;

Pete