title: How do I read in white spaces with scanf?
body: <p>It completely stops reading in code after it sees a space. How do I change my code so it reads in white space</p>
  
  <pre><code>char line[300];
  
  printf("Enter a string to be checked: ");
  scanf("%s", line);
  </code></pre>
  
  <p>the string I'm trying to input via redirection is:</p>
  
  <p>( ( a a ) &lt; > [ [ [ { [ x ] ]]] &lt;>)</p>