How I get 100 hz frequency in arduino mega 2560

I guess what Johnwasser is suggesting is make things like dataString arrays so it would be dataString[I] you are writing to the file. Serial.print is a known time user so I bet dataFile is also.