I download one program that read file and then parse double values from String to Double. But I get an exception because this file contains numbers with ‘.’ separator, but there is ‘,’ in my culture. How can I set culture explicitly?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You would use the
Parseoverload that accepts anIformatProvider.If you don’t know the culture used to write the file you create a
NumberFormatInfoand configure it as you like: