Interface for Console and Text File class