passed file contents to get function.