Added function to print content from file (#331)