Currently writing software which needs to store data (I know, it's that advanced) but I don't know where people are going to want to save it. As a default I would like it to save to C:\ but that doesn't work for use on my server which uses N:\ as the default drive.
I could change it to use N:\ but I would have the same problem if a person the chose to run it on a system with anything else as a drive.
I know you can get the current programs location, but how could I then copy the first part so I could use it.
Example
Program location: X:\Something\Something\program.exe
What I want to be able to take from that: X:\Something\Something and the add the name of the new files to be created (newdatafile.txt) so it becomes X:\Something\Something\newdatafile.txt
I'w working in C#.