title: Print the contents of a text file using javascript/jquery
body: <p>I have a text file in my system. I want print the contents of that text file using javascript/jquery. How can I do that. I have referred the <a href="https://stackoverflow.com/questions/2255291/print-the-contents-of-a-div">Link</a>. But it is simply printing from div. I need to use <code>window.print()</code> method. But how can I print the text file using javascript? Please guide me.</p>