title: How to Prevent PrintWriter from overwriting a file in Java
body: <p>How can i prevent prinwriter in java from overwriting what's inside of that particular file?</p>
  
  <p>Ex. I have a <code>student.txt</code> file. I already have few names there. After running and modifying this <a href="https://stackoverflow.com/questions/2885173/java-how-to-create-and-write-to-a-file">How do I create a file and write to it in Java?</a> whats inside of that file will be overwritten. I just want to add it to the new line.</p>
  
  <p>Also, how can i possibly perform search?</p>