New class to write text in files.