title: How to write a text to a txt file (codeigniter)
body: <p>After I had checked the questions here, I saw that I need write_file for text writing to a .txt file. I also looked for a tutorial or an example about it on Google but couldn't find a simple one. </p>
  
  <p>Could you explain me basically about how to write something to a .txt file in Codeigniter?</p>
  
  <p>As an example, a text is submitted by a user on a registration form and then the text written by the user, will be shown in users.txt. </p>