Describe the three steps that must be taken when a file is used by a program

Describe the three steps that must be taken when a file is used by a program.