get input text either by file or by command line
added Utils.py with helper functions