Serial monitor displaying junk.

nothing modified, just tried sd shield and it was working fine, but when i modified the sd sketch to read file and print on the serial the problem starts, don't know why.

Well, right there - line 37 - that's where you went wrong.

If you were to actually post the code you are running, then perhaps one of us would be inclined to try to replicate your problem. Or spot it.