title: how to print a dollar sign at the end of each in in C
body: <pre><code>while (fgets(line, LINELEN, inputFile)){
        printf("%s$", line)
  }
  </code></pre>
  
  <p>I am trying to read a file and print it out to the console as a CAT command. In this case I wanted to put a dollar sign at the end of every line, but the dollar sigh just happened to print out at the beginning of every line. Could you guys show me how to fix this. Thanks a lot!</p>