title: Faster way to initialize array with text file C++
body: <p>So I have a rather large text file with 2 columns of numbers that I would like to be able to use in a program I'm writing as a two-dimensional array. This is data that needs to be accessible every time I start up my program and I feel that it would be too slow/inefficient to have to read in the data with a file reader every single time I start my program. </p>
  
  <p>So I was wondering if there was an easier/more efficient way of accessing the data without having to read it in the traditional way (ifstream, etc)? I believe that I've once seen something like the following done: </p>
  
  <pre><code>float array[]{
      #include "myfile.txt"
  }
  </code></pre>
  
  <p>but I'm not even sure if that's a valid thing to do and I can't find any information on it. </p>