Simple program to file operations
Source: PrologTutorial (on-line tutorial)
Program source code: file_operations.pl