title: Where to put my files for ifstream and fstream
body: <p>My application returns 0x3 and crashes. I found that it maybe that fstream cannot open the file. Where it should be? I mean, same folder as the application.exe or elsewhere? I am using Code::Blocks</p>
  
  <p>EDIT</p>
  
  <p>Code::Blocks is setting the working directory with the cb runner </p>
  
  <pre><code>GLuint sh;
  int meret;
  char * s;
  std::ifstream fa1 ("vertex.vert",std::ios_base::binary);
  
  fa1.seekg(0, fa1.end);
  meret = fa1.tellg();
  fa1.seekg(0, fa1.beg);
  fa1.read(s,meret);
  fa1.close();
  //sh = glCreateShader(st);
  const char * s1[1] = {s};
  std::cout &lt;&lt; s;
  </code></pre>