Handy functions for file processing, STD tasks