csh script for deleting extra spaces in text file

I am new to scripting and I needed to know if there would be an easy way to delete extra spaces in a text file. I have a file with three rows with 22 numbers each, but there is extra spaces between the numbers when it gets output by this program AFNI that I am using. What script would help delete the extra spaces so that there is only one space between numbers? The thing is, the numbers aren't all evenly spaced in the rows....

Thanks in advance...

Megan

Below is an example of what I have, and what I would like....

I have:
0 0 0.999967 6.99001e-06 -0.0311094 0.854128 0.836092 0.834233 -0.85582 0.823927 0.550543 0.465525 0.515718 0.392239 -0.479025 -0.391751 -0.513501 -0.467562 -0.552394 -0.110216 0.110064 0.0316397
0 0 -0.00581784 -0.963206 0.608888 0.520062 0.177423 -0.428004 0.439036 0.162573 0.612435 0.883944 0.704232 0.291954 0.247972 0.710596 0.857074 0.726207 0.217247 -0.0147384 0.52374 0.936388
0 0 -0.00566925 0.268765 -0.792646 0.000969838 -0.519105 -0.347661 -0.273532 0.542876 0.567297 0.0439296 -0.487947 -0.872302 0.842048 0.584452 0.0417219 -0.503993 -0.804776 -0.993798 0.844738 0.349539

I'd like:
0 0 0.999967 6.99001e-06 -0.0311094 0.854128 0.836092 0.834233 -0.85582 0.823927 0.550543 0.465525 0.515718 0.392239 -0.479025 -0.391751 -0.513501 -0.467562 -0.552394 -0.110216 0.110064 0.0316397
0 0 -0.00581784 -0.963206 0.608888 0.520062 0.177423 -0.428004 0.439036 0.162573 0.612435 0.883944 0.704232 0.291954 0.247972 0.710596 0.857074 0.726207 0.217247 -0.0147384 0.52374 0.936388
0 0 -0.00566925 0.268765 -0.792646 0.000969838 -0.519105 -0.347661 -0.273532 0.542876 0.567297 0.0439296 -0.487947 -0.872302 0.842048 0.584452 0.0417219 -0.503993 -0.804776 -0.993798 0.844738 0.349539

This will even work in csh, which is not recommended for scripting:

tr -s ' ' < FILE

Thanks! It worked!

-Megan