Opening the file and getting its contents