title: parser txt file python
body: <p>I have txt file that contains accelerometer data and I would like to parse this file into columns.</p>
  
  <p>Below is the data, the problem is that I want only these values as columns 
  (X value, Y value, Z value, time diff in ms) and I want to remove the headers and footers of the file.</p>
  
  <pre><code># Accelerometer Values
  # filename:  default__3.txt
  # Saving start time: Sat Nov 15 11:09:33 GMT+03:30 2014
  
  # sensor resolution: 0.1m/s^2
  #Sensorvendor: ST Microelectronic, name: ST accelerometer, type: 1,version : 104, range 16.0
  
  # X value, Y value, Z value, time diff in ms
  -3.236 -4.726 8.982 1
  -3.206 -4.716 8.884 10
  -3.187 -4.716 8.816 10
  -3.138 -4.716 8.757 10
  -3.138 -4.746 8.757 1
  -3.059 -4.815 8.816 9
  -3.059 -4.864 8.825 10
  -3.069 -5.021 8.865 10
  -3.069 -4.903 8.865 1
  -3.089 -4.864 8.924 9
  -3.108 -4.903 9.051 13
  -3.157 -4.903 9.247 8
  -3.206 -4.893 9.404 9
  -3.275 -4.883 9.581 11
  -3.314 -4.726 9.62 10
  -3.314 -4.805 9.62 1
  -3.324 -4.756 9.512 9
  -3.324 -4.667 9.335 11
  -3.246 -4.589 9.247 9
  -3.177 -4.56 9.041 11
  -3.02 -4.56 8.855 9
  -3.128 -4.54 8.855 1
  -3.098 -4.628 8.708 10
  -3.098 -4.628 8.62 9
  -3.02 -4.687 8.62 1
  -3.02 -4.687 8.541 9
  -2.991 -4.775 8.541 1
  -2.961 -4.805 8.512 10
  
  # end
  #Sat Nov 15 11:10:36 GMT+03:30 2014
  </code></pre>