I have a file that looks something like this:
for (i = 0; i < 100; i++) for (i = 0; i < 100; i++) for (i = 0; i < 100; i++) for (i = 0;
sed "s/^[ \t]*//" -i youfile
Warning: this will overwrite the original file.