You need to get into the habit of correctly formatting your code. This will make reading and finding bugs much easier. In the Arduino IDE, you can press ctr+t to auto-format your code.
As for your specific problem, try this change:
change
{Serial.print("Initializing SD card...");
to
Serial.print("Initializing SD card...");
i.e. get rid of the { before "Serial.print("Initializing SD card...");"
Power_Broker:
You need to get into the habit of correctly formatting your code. This will make reading and finding bugs much easier. In the Arduino IDE, you can press ctr+t to auto-format your code.
As for your specific problem, try this change:
change
{Serial.print("Initializing SD card...");
to
Serial.print("Initializing SD card...");
i.e. get rid of the { before "Serial.print("Initializing SD card...");"
Does that fix it?
Ok. Go through your code and match up the { and }. The easiest way is to indent everything inside a set relative to what's outside. Go look at some of the examples and how they format. Keep every { and } on its own line by itself. That will help you match them up. Then maybe you can find the one that's missing.
Go to the internets and google "C++ tutorial". The first few chapters of any C++ tutorial will familiarize you with C++ syntax - what braces and semicolons are for, what a function is, what the scope of variable declarations is. Some of the stuff in the tutorial won't be relevant to Arduino programming, but your problems are very ground-level and basic: you cant code C++ at all. Go do a tutorial.