title: The header file must be given to read the data, not a file with extension '.dat'
body: <p>I am trying to synthesize EEG- fMRI.
  The dataset contains EEG preprocessed data folder having three file formats (vhdr, vmrk, .dat)</p>
  <p>I get the following error:</p>
  <blockquote>
  <p>454         raise IOError(&quot;The header file must be given to read the data, &quot;
  455                       &quot;not a file with extension '%s'.&quot; % ext)
  456</p>
  </blockquote>
  <blockquote>
  <p>OSError: The header file must be given to read the data, not a file with extension '.dat'.</p>
  </blockquote>
  <p>While the error location is at the following line of code:</p>
  <pre><code>brainvision_files = sorted([f for f in listdir(path) if isfile(join(path, f))])
  
  vhdr_file = brainvision_files[1]
  
  complete_path = path + vhdr_file
  
  return mne.io.read_raw_brainvision(complete_path, preload=True, verbose=0)
  </code></pre>
  <p>My dataset contains all three file formats <a href="https://i.stack.imgur.com/QGlCe.png" rel="nofollow noreferrer">see image here</a>.</p>
  <p>Is there anyone who can help me to solve this issue?</p>