title: To print the content of a file (supporting extensions like r,tex,txt,rnw) using R?
body: <p>Is it possible to print the content of a file (supporting extensions like r,tex,txt,rnw) using R?</p>
  
  <p>Reproducible file:</p>
  
  <pre><code>sink('myFile')
  cat('\nThis is some text')
  cat('\n')
  cat('\nEnd of file')
  sink()
  </code></pre>
  
  <p>Now I am looking for a function in R that prints the content of R as...</p>
  
  <pre><code>&gt;PRINT_FILE_CONTENT('myFile')
  This is some text
  End of file
  &gt;
  </code></pre>
  
  <p>I hope I am clear. I will appreciate any help?</p>