Hi all,

I'm trying to write a program in a Linux enviroment that parses through some xml files, that reside in the user's home dir. The problem is getting that user's username, so I can put together the path to those files (e.g. /home/username/.hiddendir/file.xml).

I've looked as much as I can, but can't find a way to dynamically, during program execution, get the user's username on the OS. Does anyone know how this could be done?