In this video we will see the function through which we can write a text file. There are different parameters available in the function that can be utilized based on the requirement. In this video we will see the most widely used parameters to write a text file. Using the function you can write a csv file as well in which you need to specify sep="," parameter. Also using this option you can write any text file having different separators. The only thing is you need to mention the required separator in "sep" parameter.