For installation
pip install pyfilehandling
Import a package
import pyfilehandling
Example
import pyfilehandling
pyfilehandling.write("abc.txt","firstline\nsecondline")
As result `abc.txt` will create in directory where this script is run from:
firstline
secondline