Write a program to print the contents of the file ‘log.txt’, the file is in folder ‘logs’. Be sure the file exists and the program is usable under multiple operating system. you can copy the example in the book(12.3), but you need to modify it.
Solution