'How to use who command with a file?

How can I use who command with a file I create?

I create an example file called test.txt with just random text in it, and using who test.txt file just does not print anything. Our teacher is asking us to use it on a file, but this doesn't give any output.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source