Added a function to get keys from a file.