The_Pope666
05-13-2007, 03:47 PM
Hello everybody,
I have a question regarding C++. Which commads do I use in one of my programs to create a simple .txt document (with the word "hi" or something else in it), on, let's say, the Desktop. First of all, I don't know any of the commads for doing this, and second of all, will it even be possible to create a .txt on the desktop via code? I mean, technically the desktop is located at C:\Dokumente und Einstellungen\Username\Desktop (sorry, it's german). What I mean though is, this will differ from computer to computer since everyone has a different user name. Or is there a simple way around this?
Regards,
Chris
I have a question regarding C++. Which commads do I use in one of my programs to create a simple .txt document (with the word "hi" or something else in it), on, let's say, the Desktop. First of all, I don't know any of the commads for doing this, and second of all, will it even be possible to create a .txt on the desktop via code? I mean, technically the desktop is located at C:\Dokumente und Einstellungen\Username\Desktop (sorry, it's german). What I mean though is, this will differ from computer to computer since everyone has a different user name. Or is there a simple way around this?
Regards,
Chris