Fourier analisys

I would like to do a Fourier analisys, but I don't know the algorithm. Could somebody help me? I would be verry pleasured if you could send me a source code.I would like to draw the spectrum of a wave data.PLEASE HELP ME!!