title: How to get data from a notepad file and use fft (fast fourier transform on it)
body: <p>I am a bit of a novice with programming as we are being made to do it in our physics degree. I am using Python 2.</p>
  
  <p>I've been given a txt file with two columns of data, the first few lines look like this:</p>
  
  <pre><code>0.000000000000000000e+00 7.335686114232199684e-02 
  1.999999999999999909e-07 7.571960558042964973e-01
  3.999999999999999819e-07 9.909475704320810374e-01
  5.999999999999999728e-07 3.412754086075696081e-01
  7.999999999999999638e-07 -5.558766000866324219e-01
  9.999999999999999547e-07 -9.810046985453722002e-01
  1.199999999999999946e-06 -5.436864816312496629e-01
  1.399999999999999937e-06 2.645021165628647641e-01
  1.599999999999999928e-06 9.667259209284312371e-01
  1.799999999999999919e-06 7.395753817164774091e-01
  1.999999999999999909e-06 7.289488801158025555e-02
  2.200000000000000112e-06 -7.925906572709742193e-01
  2.399999999999999891e-06 -9.727702002847055107e-01
  2.599999999999999671e-06 -1.772398644968510018e-01
  2.799999999999999873e-06 6.627909312992285029e-01
  3.000000000000000076e-06 1.022032186188189362e+00
  3.199999999999999855e-06 5.531242183135693935e-01
  </code></pre>
  
  <p>and on it goes for many hundreds of lines.</p>
  
  <p>The question asks:
  This week you have been provided with a file which consists of a simulated NMR time domain response following an external impulse. This free induction decay (FID) is characterized by a frequency, an initial amplitude and a decay constant. The data has a single 
  oscillation frequency and the second contains a mixture of two frequencies.
  Write a program to evaluate the Fast Fourier transform of both signals and plot them
  in the frequency domain.</p>
  
  <p>Could someone give me an example of how I might go about doing this? Unfortunately we are not given much guidance in the lab, just some online tutorials and otherwise told to google stuff.</p>