2
2989coder
After a few mishaps my program that writes to a text
file is finished.
After installing it on a test machine if failed to work
because the "standard" computers have portuguese set in
Regional Settings -- and they don't understand
value = 13.50
and they write that as
value = 13,50
I know I can write a function to read and write the values
on a char-by-char basis, but there certainly is something
easier and already made, isn't there?
What I have is (C#)
/* outfile is a StreamWriter */
outfile.WriteLine("value = {0:0.00}", 13.5);
which, running on a computer with '#' for the decimal point
will output
value = 13#50
I want it to *always* output
value = 13.50
Can somebody, please, point me in the right direction?
file is finished.
After installing it on a test machine if failed to work
because the "standard" computers have portuguese set in
Regional Settings -- and they don't understand
value = 13.50
and they write that as
value = 13,50
I know I can write a function to read and write the values
on a char-by-char basis, but there certainly is something
easier and already made, isn't there?
What I have is (C#)
/* outfile is a StreamWriter */
outfile.WriteLine("value = {0:0.00}", 13.5);
which, running on a computer with '#' for the decimal point
will output
value = 13#50
I want it to *always* output
value = 13.50
Can somebody, please, point me in the right direction?