title: Read file, line by line, and store values into a array/string?
body: <p>I have learned my lesson, so i will be short, and to the subiect.</p>
  
  <p>I need a function, in my class, that can read a file line by line, and store them into a array/string so i can use it.</p>
  
  <p>I have the following example( please don`t laugh, i am a begginer):</p>
  
  <pre><code>int CMYCLASS::LoadLines(std::string Filename)
  {
  
      std::ifstream input(Filename, std::ios::binary | ios::in);
      input.seekg(0, ios::end);
      char* title[1024];
      input.read((char*)title, sizeof(int)); 
  
      // here what ?? -_-
  
      input.close();
  
  
      for (int i = 0; i &lt; sizeof(title); i++)
      {
              printf(" %.2X ";, title[i]); 
      }
  
      printf("\");
  
      return 0;
  }
  </code></pre>