but my modified sketch won't work
Perhaps, and this is just a thought, you could post your code and explain what is happening, and how that differs from what you expect to be happening.
if (!LogFile.open(fileName, O_CREAT | O_APPEND | O_WRITE))
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16