Add main function and if statement to check whether the given parameter is directory or not
Add functions open_reading_file and open_writing_file
Add function get_file_statistics, update main function