num is an integer variable that is set to the number of the unit connected to the file, if any. If no file is connected, num is set to -1.