Implemented utility function for files as prompt.