title: Opening a file in c to read
body: <p>At first I wanted to open a file and read its contents, in C, however, in doing so, I was unable to run the program without errors, I even tried to just open the file, and not read anything, I did exactly what I saw on other questions like this and got errors, here is the code.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  void main(void){
          FILE *file = NULL;
          file = fopen('list.txt', 'r');
          }
  </code></pre>