key file_handle or
File handle example:
q)key hsym ` $ “/tmp/test.txt”
The function key returns an empty list when the file does not exist:
q)() ~ key `:/tmp/test.txt
key is one of the most heavily overloaded functions in q. It accepts an argument of type dictionary, keyed table, table column, list, and integer. It’s easy to confuse it with keys, which turns out to be an entirely different function.