Procedures for opening and closing files were implemented.