I want to make a new command in Linux(Minix) in C, for printing some info in the screen. The info is located in the file /etc/passwd and other files.
The info is names logged in, in the system and other...
I can use system() to open the file with vi editor but i don't know how to save something written in the file in a variable, so i can use it.
Anyway, i don't know if any of these is right. If you have any other ideas, please help.