Operating system language information
-
Hi, guys How can I know the language information of the operating system in my routine? Because I need read and write some files and you know, in different language operating system(eg. english and german) the directory string is different. So I think if I can learn what lanuage the operating system is using, I can choose relevant correct directory string. Alternatively, do you have other ways to solve the problem of reading and writting files in several language system? Thanks. vigorous
-
Hi, guys How can I know the language information of the operating system in my routine? Because I need read and write some files and you know, in different language operating system(eg. english and german) the directory string is different. So I think if I can learn what lanuage the operating system is using, I can choose relevant correct directory string. Alternatively, do you have other ways to solve the problem of reading and writting files in several language system? Thanks. vigorous
The
Application
class contains static properties providing some directory paths e.g.CommonAppDataPath
orLocalUserAppDataPath
. Furthermore you could use theCurrentCulture
property to get the culture information for the current thread.