I am currently devoloping a simple program to keep track of my hours at work. The program is rather simple, it brings up a noce GUI interface where the user can enter the hours worked. and then the can click "Save" or "Clear".
The clear button is very simple (and easy to do). It simply blanks out the form.
The save button appends the data into a text file. By default, I want it to save/read this text file from a user's home directory.
Now here's my question............
How do I get a user's home directory (in Linux & windows). I can manually go there by /home/user/file.txt OR C;\\documents & settings\user\My Documents........but this only works for only 1 user.